mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 23:48:09 +01:00
Fix the behaviour of the read built-in when IFS is unset.
Obtained from: NetBSD
This commit is contained in:
parent
8b1fa08c95
commit
86d8da5d5b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190298
@ -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…
Reference in New Issue
Block a user