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
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
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
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