Re: unexpected behavior of 'read' builtin

2008-05-24 Thread Chet Ramey
Juliano F. Ravasi wrote: I got bitten by two unexpected (and undocumented) behaviors of the 'read' builtin. The first one is that it doesn't seem to handle word separators equally, making distinction when spaces and non-space separators are used to separate words. Posix ma

Re: unexpected behavior of 'read' builtin

2008-05-24 Thread Dave B
On Saturday 24 May 2008 02:44, Juliano F. Ravasi wrote: > Description: > > I got bitten by two unexpected (and undocumented) behaviors of > the 'read' builtin. > > The first one is that it doesn't seem to handle word separators > equally, making distinction when spaces and non-space > separators

Re: unexpected behavior of 'read' builtin

2008-05-24 Thread Jan Schampera
Juliano F. Ravasi wrote: > The second one is that it chops leading and trailing whitespace > when you provide one variable for assignment, and not when you > use the default $REPLY. > > I don't know if these are intended behavior, but it doesn't seem > to be documented, leadin

unexpected behavior of 'read' builtin

2008-05-23 Thread Juliano F. Ravasi
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPA