Bash expansion question
Corey Edwards
tensai at zmonkey.org
Wed Feb 18 13:50:02 MST 2009
On Wed, 2009-02-18 at 13:07 -0700, Chris wrote:
> Dear bash experts,
>
> Observe:
>
> bash$ echo $(echo "1:2")
> 1:2
>
> bash$ echo $(echo "1,2")
> 1 2
I can replicate the behavior.
[cedwards at pheasant ~]$ echo $(echo "1,2")
1,2
[cedwards at pheasant ~]$ IFS=,
[cedwards at pheasant ~]$ echo $(echo "1,2")
1 2
That should give you something to research. If IFS is unset, I'm not
sure how it would be happening. Perhaps there's a default set in your
build of bash.
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/4bf89fec/attachment.bin
More information about the PLUG
mailing list