From 86d8da5d5b5043d486b7df8e778ce34a7d810199 Mon Sep 17 00:00:00 2001 From: Stefan Farfeleder Date: Sun, 22 Mar 2009 22:57:53 +0000 Subject: [PATCH] Fix the behaviour of the read built-in when IFS is unset. Obtained from: NetBSD --- bin/sh/miscbltin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sh/miscbltin.c b/bin/sh/miscbltin.c index 11e72b9bab8..2480c0d2eee 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) { /*