source | all docs for version 0.7.0 | all versions | oilshell.org
Warning: Work in progress! Leave feedback on Zulip or Github if you'd like this doc to be updated.
Why have a new spelling? Because "$@"
doesn't work well in expression mode.
ARGV
instead of "$@"
In command mode:
f() {
echo @ARGV
}
f 'foo bar' 'spam eggs'
In expression mode:
var length = len(ARGV)
var s = sorted(ARGV)