bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Incorrect alias substitution


From: Vincent Lefevre
Subject: Incorrect alias substitution
Date: Wed, 25 Feb 2009 01:25:22 +0100
User-agent: Mutt/1.5.19-vl-r26315 (2009-02-20)

I get the following errors with bash 3.2.39 under Debian/unstable:

bash -c 'alias a="echo OK >&2"
 a
 > /dev/null a'
bash: line 1: a: command not found
bash: line 2: a: command not found

$ bash --posix
bash-3.2$ alias a="echo OK >&2"
bash-3.2$ a
OK
bash-3.2$ > /dev/null a
bash: a: command not found
bash-3.2$ 

ksh93 doesn't yield such errors. And concerning the last one, bash is
the only shell I've found that yields such an error.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]