svn commit: r190298 - head/bin/sh

Stefan Farfeleder stefanf at FreeBSD.org
Sun Mar 22 15:57:54 PDT 2009


Author: stefanf
Date: Sun Mar 22 22:57:53 2009
New Revision: 190298
URL: http://svn.freebsd.org/changeset/base/190298

Log:
  Fix the behaviour of the read built-in when IFS is unset.
  
  Obtained from:	NetBSD

Modified:
  head/bin/sh/miscbltin.c

Modified: head/bin/sh/miscbltin.c
==============================================================================
--- head/bin/sh/miscbltin.c	Sun Mar 22 22:19:54 2009	(r190297)
+++ head/bin/sh/miscbltin.c	Sun Mar 22 22:57:53 2009	(r190298)
@@ -147,7 +147,7 @@ readcmd(int argc __unused, char **argv _
 	if (*(ap = argptr) == NULL)
 		error("arg count");
 	if ((ifs = bltinlookup("IFS", 1)) == NULL)
-		ifs = nullstr;
+		ifs = " \t\n";
 
 	if (tv.tv_sec >= 0) {
 		/*


More information about the svn-src-all mailing list