Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120316 Thunderbird/11.0
On 03/27/2012 10:19 AM, Bill Gradwohl wrote:
> That works on my end as well, but I still don't understand why the
> following doesn't work:
> set -- '' '' ''
> IFS='' echo "IFS=''->${*}<-"
Bash parses this line _while IFS is still at it's previous value_. Only
after it is parsed is IFS temporarily changed for the 'echo' invocation,
but that's too late.
>
> What am I missing?
You have to set IFS in an independent statement from where you plan on
using $* to take advantage of the new IFS settings.
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc Description: OpenPGP digital signature