Mar 4, 2002 #1 CaKiwi Programmer Apr 8, 2001 1,294 US How do i create an alias in a bash hell which will include its argument? e.g. in csh if i have an alias Code: alias ll "ls -l \!* | more" entering Code: ll /tmp is equivalent to Code: ls -l /tmp | more Thanks in advance. CaKiwi
How do i create an alias in a bash hell which will include its argument? e.g. in csh if i have an alias Code: alias ll "ls -l \!* | more" entering Code: ll /tmp is equivalent to Code: ls -l /tmp | more Thanks in advance. CaKiwi
Mar 4, 2002 #2 aigles Technical User Sep 20, 2001 464 FR Hi CaKiwi, The is no way tho include argument in the alias like with csh. The only solution is to define a function intead of an alias : function ll { ls -l "$@" | more" } Jean Pierre. Upvote 0 Downvote
Hi CaKiwi, The is no way tho include argument in the alias like with csh. The only solution is to define a function intead of an alias : function ll { ls -l "$@" | more" } Jean Pierre.
Mar 5, 2002 Thread starter #3 CaKiwi Programmer Apr 8, 2001 1,294 US Thanks Aigles, I haven't had a chance to try it yet. I will let you know the results when I do. CaKiwi Upvote 0 Downvote
Thanks Aigles, I haven't had a chance to try it yet. I will let you know the results when I do. CaKiwi