bug-bash
[Top][All Lists]
Advanced

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

Re: Incorrect alias substitution


From: Paul Jarc
Subject: Re: Incorrect alias substitution
Date: Tue, 24 Feb 2009 19:32:05 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Vincent Lefevre <address@hidden> wrote:
> 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

aliases aren't expanded by a non-interactive bash by default.  If you
do "shopt -s expand_aliases", then they'll be expanded.


paul




reply via email to

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