autoconf
[Top][All Lists]
Advanced

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

Re: Success (mostly) with the testsuite


From: Paul Eggert
Subject: Re: Success (mostly) with the testsuite
Date: Wed, 25 Oct 2000 23:22:20 -0700 (PDT)

   From: Akim Demaille <address@hidden>
   Date: 25 Oct 2000 12:14:12 +0200

   /tmp % echo "Xfoo" |                                             nostromo 
12:08
   pipe>     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/p; q; }
   pipe quote>   /^X\(\/\/\)[^/].*/{ s//\1/p; q; }
   pipe quote>     /^X\(\/\/\)$/{ s//\1/p; q; }
   pipe quote>     /^X\(\/\).*/{ s//\1/p; q; }
   pipe quote>     s/.*/./p; q'
   .
   .

   Arg! -n is missing, so since there is a `p', it's printed twice.

Sorry about that.  I never had a broken machine to test the sed
replacement on.  :-)

   Paul, what do you prefer?  I chose not to add `-n' but to remove the
   `p', if you think there is a difference and you prefer the other
   solution, I'll adjust the code.

I assume you removed all the "p"s, and not just the last one.  If so,
I think your change is OK.  The only difference in behavior is if
"foo" contains a newline, and the sed replacement mishandles newlines
anyway, so that's not a real problem.



reply via email to

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