I'm trying to set up an alias for bash that runs a second command after doing an 'ls -la /path/to/folder'. I have my alias set up like so:
I find that no matter what I do here, it always lists the current directory instead of the alternative directory when it exists. So when I run 'll' it' lists the files in the pwd and count information from the alternative directory. When I use the following alias, the directory lists correctly:
In this case it lists the correct directory, but no matter what I do, I can't seem to get the second command to run without screwing up the listing. Is this a bash scripting bug? or is it something I'm just missing?
Steve Kiehl
Web Page Designer - Nanovox Productions
Fantasy Artist - Zeadi
Code:
alias ll='ls -la ${1}; count ${1}'
I find that no matter what I do here, it always lists the current directory instead of the alternative directory when it exists. So when I run 'll' it' lists the files in the pwd and count information from the alternative directory. When I use the following alias, the directory lists correctly:
Code:
alias ll='ls -la ${1}'
In this case it lists the correct directory, but no matter what I do, I can't seem to get the second command to run without screwing up the listing. Is this a bash scripting bug? or is it something I'm just missing?
Steve Kiehl
Web Page Designer - Nanovox Productions
Fantasy Artist - Zeadi