Bug#607174: dash: order of characters in IFS matters

2010-12-15 Thread Cristian Ionescu-Idbohrn
Package: dash Version: 0.5.5.1-7.3 Severity: important But, for word splitting, it shouldn't matter. Bash works as expected. I flagged this Severity: important because this can potentially break a lot of scripts. Here is an example. The initial idea was to filter the list produced by ip and

Bug#607174: dash: order of characters in IFS matters

2010-12-15 Thread Jonathan Nieder
tags 607174 + upstream patch fixed-upstream quit Cristian Ionescu-Idbohrn wrote: IFS=': ' ip -o link show | while read n i s rest; do echo n=|$n|, i=|$i|, s=|$s|, rest=|$rest| 2 done The unexpected output from the above is: n=|2|, i=||, s=|eth0|, [...] After swapping the IFS