ion: man page wrong or shell argument passing broken
ion 1.0.0-alpha (x86_64-unknown-linux-gnu) rev a5fb10c7
Trying to execute a simple script like the manual:
!/usr/bin/env ion
#ion shell script for downloading youtube-dl audio
if test $len(@args) -eq 1
echo "Script didn't receive enough arguments"
exit
end
#echo Arguments: @args[1..]i
echo @args[1]
youtube-dl -x --audio-format opus @args[2]
/opt/script/ytdl_audio https://www.invidio.us/watch?v=F5Ci3sHQOX4
https://www.invidio.us/watch?v=F5Ci3sHQOX4
ion: expansion error: invalid index
The same happens on the use of @args[2]i, for which the i is not documented.