From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii To: pedwards@disaster.jaj.com Cc: gdb-patches@sources.redhat.com Subject: Re: PATCH doc/refcard.tex Date: Mon, 25 Dec 2000 01:12:00 -0000 Message-id: <200012250912.EAA22869@indy.delorie.com> References: <20001224235038.A5058@disaster.jaj.com> X-SW-Source: 2000-12/msg00256.html > Date: Sun, 24 Dec 2000 23:50:38 -0500 > From: Phil Edwards > > While trying to recall some of the more esoteric GDB commands (using > current CVS version to try to debug some C++, sigh), I tried to print > the reference card. While futzing with paper sizes, I noticed that the > version and copyright information is old. Fixed thusly. Thanks. However, I think the FSF doesn't want us to use year ranges (as in "1998--2000"), so I used explicit years instead. > (Incidentally, the doc/Makefile.in commands for refcard.dvi won't work. > When REFEDITS is empty, the command sequence includes "for f in ; do some > commands ; done" and every Bourne-family shell I tried pukes on the early > ';'. The irony is that this is in a branch which knows that REFEDITS is > not empty, but is joined together with the lines executed when it is empty, > into one long shell statement.) This works for me with Bash. Hmm. Does it work if you replace "$(REFEDITS)" with $$REFEDITS ? (You might need to "export REFEDITS" somewhere in the Makefile.) >From mir@sunchorus.France.Sun.COM Tue Dec 26 02:42:00 2000 From: Adam Mirowski To: "Eli Zaretskii" , Cc: Subject: Re: PATCH doc/refcard.tex Date: Tue, 26 Dec 2000 02:42:00 -0000 Message-id: <200012261042.LAA19117@sunchorus.France.Sun.COM> X-SW-Source: 2000-12/msg00257.html Content-length: 988 >> (Incidentally, the doc/Makefile.in commands for refcard.dvi won't work. >> When REFEDITS is empty, the command sequence includes "for f in ; do some >> commands ; done" and every Bourne-family shell I tried pukes on the early >> ';'. The irony is that this is in a branch which knows that REFEDITS is >> not empty, but is joined together with the lines executed when it is empty, >> into one long shell statement.) > >This works for me with Bash. Hmm. Does it work if you replace >"$(REFEDITS)" with $$REFEDITS ? (You might need to "export REFEDITS" >somewhere in the Makefile.) There are no quotes around the refedits variable, that is the problem. Yes, it seems that bash does not need them in a for/in/do/done construct after "in" when the variable passed is empty, unlike the original Bourne shell. Looks like almost everybody compiling gdb docs must be using bash; I was quite suprized some time ago to see that a simple "make ps" did not work in the docs directory. -Adam