[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
- Re: Syntax Question..., (continued)
- Re: Syntax Question..., Linda Walsh, 2011/08/15
- Re: Syntax Question..., Greg Wooledge, 2011/08/15
- Re: Syntax Question..., Linda Walsh, 2011/08/18
- Re: Syntax Question..., Greg Wooledge, 2011/08/18
- Re: Syntax Question..., Chet Ramey, 2011/08/18
- Re: Syntax Question..., Greg Wooledge, 2011/08/18
- Re: Syntax Question..., Chet Ramey, 2011/08/18
- Re: Syntax Question..., Greg Wooledge, 2011/08/18
- Re: Syntax Question..., Chet Ramey, 2011/08/18
- Re: Syntax Question..., Linda Walsh, 2011/08/18
- Re: Syntax Question...,
Ken Irving <=
- Re: Syntax Question..., Linda Walsh, 2011/08/18
- Re: Syntax Question..., Greg Wooledge, 2011/08/18
- general bash oddities and discussion (was Re: Syntax Question...), Linda Walsh, 2011/08/18
- Re: Syntax Question..., Chet Ramey, 2011/08/18
- Re: Syntax Question..., Dennis Williamson, 2011/08/15
- Re: Syntax Question..., Linda Walsh, 2011/08/15
- Re: Syntax Question..., Greg Wooledge, 2011/08/16
- Re: Syntax Question..., Dennis Williamson, 2011/08/16
- Re: Syntax Question..., Linda Walsh, 2011/08/16
- Re: Syntax Question..., Dennis Williamson, 2011/08/16