[bug] @split string method doesn't work?
Expected: @split
to split a string into an array
Outcome: empty line
ion version: 1.0.5_1 installed latest via the void linux repos
Hi, so I tried incorporating the git prompt snippet into my initrc file, but ran into some issues.
The first hurdle I can't seem to get over is with the @split
method. When trying the method via the cli, I get nothing...
let string = "hello world"
echo @split($string, " ")
The aforementioned returns a blank line. Does this method exist, is buggy, or am I just missing something?
[EDIT] The following fails as well:
echo @split(@(cat .git/HEAD)[1], "/")[2]
which yields:
, /
in the command line.
Edited by Vinny