This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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.
$ 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
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |