bug-bash
[Top][All Lists]
Advanced

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

Re: Syntax Question...


From: Ken Irving
Subject: Re: Syntax Question...
Date: Thu, 18 Aug 2011 09:37:14 -0800
User-agent: Mutt/1.5.20 (2009-06-14)

On Thu, Aug 18, 2011 at 10:13:45AM -0700, Linda Walsh wrote:
>    Um...the description from "<<<",  above indicates it is...subject
> to pathname expansion...If I had matching filesin my dir, it
> expanded and returned them,
> so I'm pretty sure it does PN expansion.

As noted, you're being fooled by not quoting the variable, which is
expanded in the echo and not in the <<< operation.

    $ rm *.x
    $ touch foo.x bar.x
    $ read a <<< *.x
    $ echo "$a"
    *.x
    $ echo $a
    bar.x foo.x

Ken




reply via email to

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