[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
IFS handling and read
From: |
Юрий Пухальский |
Subject: |
IFS handling and read |
Date: |
Wed, 25 Nov 2009 14:15:14 +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.»
- IFS handling and read,
Юрий Пухальский <=
- IFS handling and read, Юрий Пухальский, 2009/11/26
- Re: IFS handling and read, Eric Blake, 2009/11/26
- Re: IFS handling and read, Marc Herbert, 2009/11/30
- Re: IFS handling and read, Lhunath (Maarten B.), 2009/11/30
- Re: IFS handling and read, Greg Wooledge, 2009/11/30
- Re: IFS handling and read, Chris F.A. Johnson, 2009/11/30
- Re: IFS handling and read, Lhunath (Maarten B.), 2009/11/30
- Re: IFS handling and read, Chris F.A. Johnson, 2009/11/30
- Re: IFS handling and read, Chet Ramey, 2009/11/30
- Re: IFS handling and read, Lhunath (Maarten B.), 2009/11/30