Control: tags -1 + fixed-upstream On 2015-08-08 15:43 -0400, Bize Ma wrote:
> Package: dash > Version: dash: 0.5.7-3 > > This two commands: > > dash -c 'echo " a b " | { read var; echo "<$var>"; }' > bash -c 'echo " a b " | { read var; echo "<$var>"; }' > > produce: > > <a b > > > <a b> > > > So, dash is not ignoring trailing spaces of values as defined in POSIX > (and most shells do): > > http://pubs.opengroup.org/onlinepubs/9699919799/utilities/read.html > > > - The remaining fields and their delimiters, *with trailing **IFS > white space ignored* This has been fixed in dash 0.5.9.1, more precisely in commit 0e4c959946 ("builtin: Fix handling of trailing IFS white spaces")[1]. Cheers, Sven 1. https://git.kernel.org/pub/scm/utils/dash/dash.git/commit/?id=0e4c9599468ab102e6a612439db6df0248410483