Vin Shelton <[EMAIL PROTECTED]> 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

_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils

Reply via email to