IFS/read dash bug (was Re: Problems with the new base-files-4.0-5?)
Cyrille Lefevre
cyrille.lefevre-lists@laposte.net
Sun Mar 20 19:14:00 GMT 2011
Le 19/03/2011 23:34, Cyrille Lefevre a écrit :
>
>
> Le 18/03/2011 14:46, David Sastre a écrit :
>
>>> [ -e "${p}" ]&& IFS=',' read -r PRINTER dummy< "${p}"
>>
>> Works in bash, posh, mksh and zsh, but fails (at least for me) in
>> dash.
>
> regarding SUSv3, read is not a special builtin, so, should work under
> every shell, if that fails under dash, it should be fixed.
fixed in git depot as of :
2010-05-27 Herbert Xu [VAR] Do not poplocalvars prematurely on regular
utilitie
http://git.kernel.org/?p=utils/dash/dash.git;a=snapshot;h=1d806ac1fbafb867f6252e184e1be05c0829ab71;sf=tgz
$ echo a b,c | ./dash -c 'IFS=, read a b; echo $a'
a b
however, there are a lot of change on 2010-05-27/28, the last one is :
http://git.kernel.org/?p=utils/dash/dash.git;a=snapshot;h=0cda2e1f8d8222fa497f808b54a2146d60e304f5;sf=tgz
how about to update dash from git since the last release is almost one
year old ?
Regards,
Cyrille Lefevre
--
mailto:Cyrille.Lefevre-lists@laposte.net
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list