Bug#598239: dash local assignment splits words

2010-10-03 Thread Jilles Tjoelker
Stephen Gildea wrote: > Using the "local" command to do variable assignment should not do word > splitting. Please note that this feature was in dash for some time, but was then removed. See Changelog.O in the dash source tree: On Sun, 23 Nov 1997 12:45:15 +1100, ash 0.3.1-14: * Disabled word-s

Bug#598239: dash local assignment splits words

2010-09-29 Thread Jonathan Nieder
Stephen Gildea wrote: > Wait, so you're telling me that > > VAR=$stuff > export VAR > > and > > export VAR=$stuff > > parse differently from each other in Dash, and this is not considered > a bug? Yes. It is even required behavior, if I understand correctly. See http://unix.org/2008edition [1]

Bug#598239: dash local assignment splits words

2010-09-29 Thread Stephen Gildea
Wait, so you're telling me that VAR=$stuff export VAR and export VAR=$stuff parse differently from each other in Dash, and this is not considered a bug? If so, I have to say that it appears Bash got it right here. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a

Bug#598239: dash local assignment splits words

2010-09-27 Thread Raphael Geissert
On Monday 27 September 2010 12:52:02 Stephen Gildea wrote: > Using the "local" command to do variable assignment should not do word > splitting. The following script shows how a Dash function incorrectly > handles an argument with a space in it. Dash is actually working as expected: 'local' is a

Bug#598239: dash local assignment splits words

2010-09-27 Thread Stephen Gildea
Package: dash Version: 0.5.5.1-7 Using the "local" command to do variable assignment should not do word splitting. The following script shows how a Dash function incorrectly handles an argument with a space in it. #! /bin/dash show_buggy_word_splitting() { local d=$1 if [ "$d" = "two w