PATCH: bad sed expression

Matthias Andree matthias.andree at gmx.de
Tue Jan 7 03:09:41 CET 2003


Clint Adams <schizo at debian.org> writes:

> I had a grftest failure, and when I tried to run the test manually, it
> mangled "bogofilter/tests" into "bogofiltests".
>
> Index: tests/t.frame
> ===================================================================
> RCS file: /cvsroot/bogofilter/bogofilter/tests/t.frame,v
> retrieving revision 1.16.2.1
> diff -u -r1.16.2.1 t.frame
> --- tests/t.frame	2 Jan 2003 14:58:20 -0000	1.16.2.1
> +++ tests/t.frame	5 Jan 2003 14:52:34 -0000
> @@ -13,7 +13,7 @@
>  : ${relpath=..}
>  
>  if [ -z "$RUN_FROM_MAKE" ] ; then
> -   NAME=`echo $0 | sed s at ./t.@@`
> +   NAME=`echo $0 | sed "s@\./t\.@@"`

Wow. cvs blame^Wannotate says I broke it, but I have yet another version...

1.9          (m-a      29-Nov-02): if [ -z "$RUN_FROM_MAKE" ] ; then
1.18         (m-a      29-Dec-02):    NAME=`echo $0 | sed s at .*/t\.@@`
1.16         (m-a      24-Dec-02):    DATE=`date +"%Y%m%d"`
1.8          (relson   27-Nov-02):    TMPDIR="$NAME.$DATE"

Wonderful... not. Everytime a single bit in this file changes, either
make check, the command line tests or "make distcheck" drops dead. This
alone is reason enough not to release 1.0.

-- 
Matthias Andree




More information about the bogofilter-dev mailing list