[LEDE-DEV] [patch master 13/15] To read lines rather than words, pipe/redirect to a 'while read' loop

Lars Kruse lists at sumpfralle.de
Sun Oct 2 04:33:35 PDT 2016


Hi Oswald,


Am Sat, 1 Oct 2016 11:09:48 +0200
schrieb Oswald Buddenhagen <oswald.buddenhagen at gmx.de>:


> this won't work, because it makes the loop body a subshell, and thus the
> assignment of SELECTED will get lost.

Right. I missed that.


> to achieve the goal with minimal effort, adding
> 
>   local IFS=$'\n'
> 
> prior to the loop should be sufficient.


Much better - thanks for the hint!


> ps: please configure your mailer to not wrap quotes.

Done, thank you!

Cheers,
Lars



More information about the Lede-dev mailing list