]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Add an `echo' so that the input to the sed command
authorJim Meyering <jim@meyering.net>
Mon, 13 Nov 2000 23:59:15 +0000 (23:59 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 13 Nov 2000 23:59:15 +0000 (23:59 +0000)
is NL-terminated.  Otherwise, Solaris' /bin/sed generates no output.
Reported by Vin Shelton.

tests/mkdir/perm

index 83dc70c4203e996c17683adeb6edea4ad75958cc..1556f1ddfd5ae918d9cec1ee2f53d906fc6479ed 100755 (executable)
@@ -40,7 +40,7 @@ for p in empty -p; do
 
   old_IFS=$IFS
   IFS=':'
-  set - `echo "$tests"|tr -d '\012'|sed 's/^ *//;s/ *:/:/g;s/: */:/g'`
+  set - `(echo "$tests"|tr -d '\012'; echo)|sed 's/^ *//;s/ *:/:/g;s/: */:/g'`
   IFS=$old_IFS
 
   while :; do