[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
IFS in function call in herestring for read
From: |
Evan Gates |
Subject: |
IFS in function call in herestring for read |
Date: |
Wed, 12 Mar 2014 09:14:59 -0700 |
setup:
foo() { printf "%q\n" "$IFS" >&2; printf "%s\n" "$*" >&2; }
IFS=: read <<< "$(foo bar baz qux)"
bash 4.2 output:
:
bar:baz:qux
bash 4.3 output:
:
bar baz qux
IFS is still set within the function call, but isn't being used in the
expansion of "$*"
-emg
- IFS in function call in herestring for read,
Evan Gates <=