Re: RFC: turn off word splitting for vars but keep for read

2013-11-22 Thread Aleksey Midenkov
On Fri, Nov 22, 2013 at 11:21 PM, Pierre Gaston wrote: > > > > On Fri, Nov 22, 2013 at 8:53 PM, Eric Blake wrote: >> >> On 11/22/2013 10:36 AM, Aleksey Midenkov wrote: >> >> > But nevertheless, I still find my proposal usable (since word >> >

Re: RFC: turn off word splitting for vars but keep for read

2013-11-22 Thread Aleksey Midenkov
On Fri, Nov 22, 2013 at 7:07 PM, Pierre Gaston wrote: > > > > On Fri, Nov 22, 2013 at 8:00 AM, Aleksey Midenkov wrote: >> >> Since word splitting in vars is used not more frequently than never, >> protecting all vars in scripts with double quotes is quite unpleasa

RFC: turn off word splitting for vars but keep for read

2013-11-22 Thread Aleksey Midenkov
Since word splitting in vars is used not more frequently than never, protecting all vars in scripts with double quotes is quite unpleasant thing. Therefore, I want exactly this behavior always to be in my scripts: $ IFS="" $ f() { echo $1; }; x="a b c"; f $x a b c But, IFS influences `read`, whic