Right now, if we want to specify a command that accepts arguments, like this:
count: ls -1 ${1:-.} | wc -l
We must end the command with a # sign, since alf adds "$@" at the end.
It should be easy to avoid adding this suffix, if the command already includes a $ sign - in this case, we "transfer argument control" to the user.
Another option, is to allow a more explicit "opt out" from this behavior, in case someone wants to avoid this suffix in a command that does not include a $ symbol.
Right now, if we want to specify a command that accepts arguments, like this:
We must end the command with a
#
sign, since alf adds"$@"
at the end.It should be easy to avoid adding this suffix, if the command already includes a $ sign - in this case, we "transfer argument control" to the user.
Another option, is to allow a more explicit "opt out" from this behavior, in case someone wants to avoid this suffix in a command that does not include a
$
symbol.