Fix the behaviour of the read built-in when IFS is unset.
Obtained from: NetBSD
This commit is contained in:
parent
8b1fa08c95
commit
86d8da5d5b
@ -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) {
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user