bug-bash
[Top][All Lists]
Advanced

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

read -N ignores IFS


From: isabella parakiss
Subject: read -N ignores IFS
Date: Sun, 29 Mar 2015 11:03:32 +0200

$ read -n 100 a b <<< 'x y'; declare -p a b
declare -- a="x"
declare -- b="y"
$ read -N 100 a b <<< 'x y'; declare -p a b
declare -- a="x y
"
declare -- b=""

>From my understanding of the documentation, read -N should ignore the
delimiter (-d), not the IFS.  If the current behaviour is correct, a
better wording may be helpful.


---
xoxo iza



reply via email to

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