I'm trying to translate some useful aliases from
This is one such alias:
alias l "ls -lAh $*"
I want this to be able to receive any number of arguments (because ls can handle any number of args) but I still want this to work without arguments.
Now when I type
$* expands to
ls -lAh null is not a valid command.
I could write wrappers for some of my frequently-used shell commands, but isn't there any better way to do this?
eshell have a mechanic for simple substitution instead of aliases behaving like lisp functions?
If this is the only way to do things in
eshell, Is there any way to make
$* expand to whitespace when it's empty or something?