Re: Bash expansion nuance or bug?

2006-06-21 Thread Paul Jarc
Linda Walsh [EMAIL PROTECTED] wrote: Two aliases: alias ls='ls -CFG --show-control-chars --color=tty ' alias dir='ls' If I type ls dir (created a test dir called dir), I get: ls dir I get: ls: ls: No such file or directory. man bash, under ALIASES: # If the last character of

Re: Bash expansion nuance or bug?

2006-06-21 Thread Eric Blake
I ran into an oddity in alias expansion. I don't know if it is a bug, or some feature I'm unfamiliar with: From 'man bash', under the section ALIASES: If the last character of the alias value is a blank, then the next command word following the alias is also checked for alias expansion.