bug-bash
[Top][All Lists]
Advanced

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

Re: Command "": bug or feature?


From: Paul Jarc
Subject: Re: Command "": bug or feature?
Date: 10 Apr 2001 10:47:14 -0400
User-agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7

Alessandro Russo <russo@dragon.ian.pv.cnr.it> writes:
> > > Suppose the executable file /tmp/a.out exist. Then do:
> > >
> > > # export PATH=/tmp/a.out:$PATH
> > > # ""
> > >
> > > As a result, a.out is executed.
> 
> There is another anomaly(?): if I set
> 
> # a=""
> 
> and then I do
> 
> # $a
> #
> 
> a.out is NOT executed (infact I get no output). Same in Linux.

That's because $a undergoes word splitting, which results in no
words.  If you run "$a" (with the quotes) instead, I expect a.out will
be executed.


paul



reply via email to

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