Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd5.5
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='freebsd5.5' -DCONF_MACHTYPE='i386-unknown-freebsd5.5'
-DCONF_VENDOR='unknown' -DLOCALEDIR='/home/svdb/bashtemp
I ran into an oddity in alias expansion. I don't know if it
is a bug, or some feature I'm unfamiliar with:
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
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
> 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
Ah! Don't remember reading those lines under aliasesuseful, I
agree, though, even with documentation, it seems a bit obscure.
Something to file under "Bash Arcana".
:-)
thanks!
-linda
___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.o