Re: How to correctly generate 'foobar.h' from 'foobar.h.in'

2010-08-04 Thread Ralf Wildenhues
Hello, * Mike Frysinger wrote on Wed, Aug 04, 2010 at 09:19:30AM CEST: > On Wednesday, August 04, 2010 01:36:34 Tao Wang wrote: > > First, the generated content is: > > = > > #define PATH_PREFIX"/home/tao/unstable/stardict" > > #define PATH_DATADIR"${prefix}/share" > > = >

RE: Fix testsuite errors due to shell quoted parameter expansion issue.

2010-08-04 Thread John Lumby
Eric Blake wrote> On 08/04/2010 09:18 AM, John Lumby wrote: > > > > > Re the statement > > > > since "$e" is quoted, it must not be elided > > > > I don't think that is correct. In fact "$e" *must* be elided - > > because you juxtaposed it with the next token.eliding and quoting ar

Re: Fix testsuite errors due to shell quoted parameter expansion issue.

2010-08-04 Thread Eric Blake
[please don't top-post on technical lists] On 08/04/2010 09:18 AM, John Lumby wrote: > > Re the statement > > since "$e" is quoted, it must not be elided > > I don't think that is correct. In fact "$e" *must* be elided - because > you juxtaposed it with the next token.eliding and q

RE: Fix testsuite errors due to shell quoted parameter expansion issue.

2010-08-04 Thread John Lumby
Re the statement since "$e" is quoted, it must not be elided I don't think that is correct. In fact "$e" *must* be elided - because you juxtaposed it with the next token.eliding and quoting are orthogonal. What you appear to be be expecting is that the effect of quoting one token

Re: Fix testsuite errors due to shell quoted parameter expansion issue.

2010-08-04 Thread Mikael Magnusson
On 3 August 2010 22:55, Eric Blake wrote: > [adding autoconf to document some shell bugs] > > On 08/03/2010 02:32 PM, Ralf Wildenhues wrote: >> Interesting shell unportability: >> >> $ bash -c 'f=" val" e=; echo "$e"$f' >> val >> $ ksh -c 'f=" val" e=; echo "$e"$f' >> val >> >> ksh93, dash, zsh a

Re: How to correctly generate 'foobar.h' from 'foobar.h.in'

2010-08-04 Thread Mike Frysinger
On Wednesday, August 04, 2010 01:36:34 Tao Wang wrote: > I created 'src/foobar.h.in' with following content: > > = > #define PATH_PREFIX"@prefix@" > #define PATH_DATADIR"@datadir@" > = > > And put 'src/foobar.h' in AC_CONFIG_FILES() in 'configure.ac'. > > After I run 'aut