bug-bash
[Top][All Lists]
Advanced

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

Re: a=if; $a true; then ...


From: Paul Jarc
Subject: Re: a=if; $a true; then ...
Date: Mon, 08 Jul 2002 17:40:53 -0400
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu)

Dan Jacobson <address@hidden> wrote:
> Let's say that bash magically started supporting this style of call
> for builtins, just as it works fine for non builtins:
>
> $ a='if true;then echo ooo;fi' b=who
> $ $a
> bash: if: command not found

This must not do what you want; the metacharacters such as semicolon
are not supposed to be special when part of an expanded value.  I'm
not sure about the other example in your Subject line, but you could
check the standard at <URL:http://www.opengroup.org/>.


paul



reply via email to

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