1 FAQ tagged "command_line_args"
Viewing 1-1 of 1 FAQ -- Pass command line argument to bash alias command
Q. How do I pass all command line args to my alias called foo. For example:
alias foo=”/path/to/command $@”
However $@ get interpreted when creating the alias instead of during the execution of the alias and escaping the $ doesn’t work either. How do I solve this problem?
A. You need to use shell function instead of an [...]
Viewing 1-1 of 1 FAQ - ( see all popular tags )



Recent Comments
Today ~ 5 Comments
Today ~ 1 Comment
Yesterday ~ 1 Comment
Yesterday ~ 2 Comments
Yesterday ~ 10 Comments