Bash expansion question
Corey Edwards
tensai at zmonkey.org
Wed Feb 18 15:06:16 MST 2009
On Wed, 2009-02-18 at 14:24 -0700, Chris wrote:
> On Wed, Feb 18, 2009 at 1:50 PM, Corey Edwards <tensai at zmonkey.org> wrote:
> > Perhaps there's a default set in your build of bash.
>
> As suspected, there was a loose nut between the seat and the keyboard.
>
> The empty output of "echo $IFS" misled me into thinking that IFS was unset.
>
> I see now that "echo" does not display the values of bash shell
> variables. One can grep the output of "set" to find them:
Or rather, the IFS setting was interfering with bash showing you the
contents of IFS.
[cedwards at pheasant ~]$ echo foo${IFS}bar
foo bar
[cedwards at pheasant ~]$ echo "foo${IFS}bar"
foo,bar
Corey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://plug.org/pipermail/plug/attachments/20090218/0431c0e6/attachment.bin
More information about the PLUG
mailing list