[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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)
--- ./man/Makefile.tv 2004-01-07 13:50:31.000000000 +0100
+++ ./man/Makefile 2004-01-07 13:50:27.000000000 +0100
@@ -485,11 +485,12 @@
.x.1:
@rm -f $@
@echo "Updating man page $@"; \
+ rm -fr $t; \
mkdir $t; \
- (cd $t && $(LN_S) ../../src/$(mapped_name)$(EXEEXT) $*$(EXEEXT)); \
+ (cd $t && $(LN_S) ../../src/$(mapped_name)$(EXEEXT)
$(mapped_name)$(EXEEXT)); \
$(HELP2MAN) \
--include=$(srcdir)/$*.x \
- --output=$@ $t/$*$(EXEEXT)
+ --output=$@ $t/$(mapped_name)$(EXEEXT)
@chmod a-w $@
@rm -rf $t
- [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Thierry Vignaud, 2004/01/07
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Thierry Vignaud, 2004/01/07
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms,
Thierry Vignaud <=
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Jim Meyering, 2004/01/07
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Olivier Delhomme, 2004/01/07
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Paul Jarc, 2004/01/07
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Bob Proulx, 2004/01/08
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Paul Jarc, 2004/01/07