[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: alias for commands broken in bash 2.05.0
From: |
Chet Ramey |
Subject: |
Re: alias for commands broken in bash 2.05.0 |
Date: |
Wed, 8 Aug 2001 06:12:23 -0400 |
> The two-line script below prints "abc: command not found"
> instead of the current directory on bash-2.05.0.
> I built bash from source under RedHat 7.1 (with RedHat's gcc)
> and SCO ODT 2.0 (with gcc-2.7.2.1).
> It also happens with the bash-2.04.21 distributed by RedHat.
>
> alias abc=pwd
> abc
This is from the bash man page:
Aliases are not expanded when the shell is not interactive, unless
the expand_aliases shell option is set using shopt (see the description
of shopt under SHELL BUILTIN COMMANDS below).
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/