bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make check failure in fileutils-4.0.32


From: Jim Meyering
Subject: Re: make check failure in fileutils-4.0.32
Date: 14 Nov 2000 01:00:47 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

Vin Shelton <address@hidden> wrote:

| Yes, I agree that the problem is odd.  I think it has to do with Sun's
| sed.  Are you using GNU sed by any chance?  In any case, inside the
| perm test, this line:
|
|     set - `echo "$tests"|tr -d '\012'|sed 's/^ *//;s/ *:/:/g;s/: */:/g'`
|
| results in no arguments being set.
|
| Here is the output you requested:

Thanks!  And for the analysis.
I *am* using GNU sed.
Here's the patch:

        * tests/mkdir/perm: Add an `echo' so that the input to the sed command
        is NL-terminated.  Otherwise, Solaris' /bin/sed generates no output.
        Reported by Vin Shelton.

Index: tests/mkdir/perm
===================================================================
RCS file: /fetish/fileutils/tests/mkdir/perm,v
retrieving revision 1.7
diff -u -p -r1.7 perm
--- tests/mkdir/perm    2000/11/11 13:34:51     1.7
+++ tests/mkdir/perm    2000/11/13 23:56:58
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]