diff options
author | stefanf <stefanf@FreeBSD.org> | 2009-03-22 22:57:53 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2009-03-22 22:57:53 +0000 |
commit | 92cca788e9e3915b7f1e299417bb84c98f85ac82 (patch) | |
tree | d8dd17123dc2ab504ac96918add21f17a4dd436e /bin | |
parent | 79a3bf3a75f72903a310ed9bb412bf42cd9f7f53 (diff) | |
download | FreeBSD-src-92cca788e9e3915b7f1e299417bb84c98f85ac82.zip FreeBSD-src-92cca788e9e3915b7f1e299417bb84c98f85ac82.tar.gz |
Fix the behaviour of the read built-in when IFS is unset.
Obtained from: NetBSD
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/miscbltin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/miscbltin.c b/bin/sh/miscbltin.c index 11e72b9..2480c0d 100644 --- a/bin/sh/miscbltin.c +++ b/bin/sh/miscbltin.c @@ -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) { /* |