]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Solaris 8 sh doesn't understand "if !". Do not assume that 'sed' can
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 12 Apr 2006 07:07:32 +0000 (07:07 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 12 Apr 2006 07:07:32 +0000 (07:07 +0000)
handle long, newline-free input.

tests/du/long-from-unreadable

index 02877f46fee881bb3bc6d1fcee513642d4dfadf4..2ae7ed1d9027ea28002541106fc9afc5aa579786 100755 (executable)
@@ -19,7 +19,7 @@ fi
 . $srcdir/../envvar-check
 
 proc_file=/proc/self/fd
-if ! test -d $proc_file; then
+if test ! -d $proc_file; then
   cat <<EOF >&2
 $0: Skipping this test.
 It would fail, since your system lacks /proc support.
@@ -36,7 +36,7 @@ framework_failure=0
 mkdir -p $tmp || framework_failure=1
 cd $tmp || framework_failure=1
 
-dir=`printf %200s ' '|sed 's/ /x/g'`
+dir=`printf '%200s\n' ' '|tr ' ' x`
 
 # Construct a hierarchy containing a relative file with a name
 # longer than PATH_MAX.