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: Vin Shelton
Subject: Re: make check failure in fileutils-4.0.32
Date: 14 Nov 2000 09:11:26 -0500

Works like a champ!  Thanks.

>>>>> On 14 Nov 2000 01:00:47 +0100, Jim Meyering <address@hidden> said:

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

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

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

Jim> Index: tests/mkdir/perm
Jim> ===================================================================
Jim> RCS file: /fetish/fileutils/tests/mkdir/perm,v
Jim> retrieving revision 1.7
Jim> diff -u -p -r1.7 perm
Jim> --- tests/mkdir/perm       2000/11/11 13:34:51     1.7
Jim> +++ tests/mkdir/perm       2000/11/13 23:56:58
Jim> @@ -40,7 +40,7 @@ for p in empty -p; do
 
Jim>    old_IFS=$IFS
Jim>    IFS=':'
Jim> -  set - `echo "$tests"|tr -d '\012'|sed 's/^ *//;s/ *:/:/g;s/: */:/g'`
Jim> +  set - `(echo "$tests"|tr -d '\012'; echo)|sed 's/^ *//;s/ *:/:/g;s/: 
*/:/g'`
Jim>    IFS=$old_IFS
 
Jim>    while :; do


-- 
In a minute there is time
For decisions and revisions which a minute will reverse.         T.S. Eliot
[URL: http://www.cs.amherst.edu/~ccm/prufrock.html]



reply via email to

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