[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.
- Re: Success (mostly) with the testsuite, (continued)
- Re: Success (mostly) with the testsuite, David Morgan, 2000/10/24
- Re: Success (mostly) with the testsuite, Pavel Roskin, 2000/10/24
- Re: Success (mostly) with the testsuite, David Morgan, 2000/10/24
- Re: Success (mostly) with the testsuite, David Morgan, 2000/10/24
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/25
- Re: Success (mostly) with the testsuite, David Morgan, 2000/10/25
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/25
- Re: Success (mostly) with the testsuite, David Morgan, 2000/10/25
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/25
- Re: Success (mostly) with the testsuite, David Morgan, 2000/10/25
- Re: Success (mostly) with the testsuite,
Paul Eggert <=
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/26
- Re: Success (mostly) with the testsuite, Alexandre Oliva, 2000/10/26
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/26
- Various systems (was: Success (mostly) with the testsuite), Akim Demaille, 2000/10/25
- Re: Various systems (was: Success (mostly) with the testsuite), David Morgan, 2000/10/25
- Re: Various systems (was: Success (mostly) with the testsuite), Akim Demaille, 2000/10/25
- Re: Various systems (was: Success (mostly) with the testsuite), David Morgan, 2000/10/25
- Re: Various systems (was: Success (mostly) with the testsuite), Akim Demaille, 2000/10/25
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/25
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/25