Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like form
From:
Thierry Vignaud
Subject:
Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms
Date:
Wed, 07 Jan 2004 13:13:49 +0000
User-agent:
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)
Thierry Vignaud <address@hidden> writes:
> oops, i sent the wrong patch:
here's two updated patches again:
in order to let coreutils build smoothly, it's better to only check
the last character of program name rather than the full name:
--- ./src/test.c.tv 2004-01-07 12:36:21.000000000 +0100
+++ ./src/test.c 2004-01-07 13:06:06.000000000 +0100
@@ -1091,7 +1091,7 @@
argv = margv;
- if (LBRACKET)
+ if (margv[0][strlen(margv[0])-1] == '[')
{
/* Recognize --help or --version, but only when invoked in the
"[" form, and when the last argument is not "]". POSIX
the following patch:
- fix spurious error message when one do make install again (rm part)
- make coreutils use mapped name everywhere needed (because posix said
that test and [ behavior is different regarding --help and
--version)