Fix the behaviour of the read built-in when IFS is unset.

Obtained from:	NetBSD
This commit is contained in:
Stefan Farfeleder 2009-03-22 22:57:53 +00:00
parent 8b1fa08c95
commit 86d8da5d5b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190298

View File

@ -147,7 +147,7 @@ readcmd(int argc __unused, char **argv __unused)
if (*(ap = argptr) == NULL)
error("arg count");
if ((ifs = bltinlookup("IFS", 1)) == NULL)
ifs = nullstr;
ifs = " \t\n";
if (tv.tv_sec >= 0) {
/*