bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IFS handling and read


From: Юрий Пухальский
Subject: IFS handling and read
Date: Thu, 26 Nov 2009 23:02:52 +0300

Good day!

Theres is a problem with a following code:

echo a:b|IFS=: read a b; echo $a

According to a standard, i expect the field splitting to occur, thus
setting a variable to "a" value. But It doesn't work even with POSIX
option. Other shells i can lay my hands upon (native shells on HP-UX
and AIX of different versions), ksh and zsh work as expected.

(GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu))

——
«The good thing about standards is there are so many to choose from.»




reply via email to

[Prev in Thread] Current Thread [Next in Thread]