[Top][All Lists]

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

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

From: Chet Ramey
Subject: Re: a=if; $a true; then ...
Date: Mon, 8 Jul 2002 17:39:46 -0400

> Let's say that bash magically started supporting this style of call
> for builtins, just as it works fine for non builtins:

`if' is not a builtin, it's a reserved word.

> $ a='if true;then echo ooo;fi' b=who
> $ $a
> bash: if: command not found
> $ eval $a
> ooo
> $ $b
> jidanni  pts/4        Jul  8 15:41 (:0)
> instead of giving the error.  Would such support violate any standards?


``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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