autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCHv2] docs: mention another issue with variable expansion


From: Ralf Wildenhues
Subject: Re: [PATCHv2] docs: mention another issue with variable expansion
Date: Fri, 27 Aug 2010 19:19:49 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

* Eric Blake wrote on Thu, Aug 26, 2010 at 07:01:30PM CEST:
> +Perhaps the easiest way to work around quoting issues in a manner
> +portable to all shells is to place the results in a temporary variable,
> +then use @samp{$tmp} as the @var{value}, rather than trying to inline
> +the expression needing quoting.

I wish you wouldn't use nor promote tmp as temporary variable name,
nor as a temporary macro name in tests/m4sh.at, given that it's already
documented as name of a temporary directory to use in config.status.

> address@hidden
> +$ @kbd{/bin/sh -c 'tmp="a  b\"'\''@}\\"; echo "address@hidden@}"'}
> +b  c"'@}\
> +$ @kbd{ksh -c 'tmp="a  b\"'\''@}\\"; echo "address@hidden@}"'}
> +b  c"'@}\
> +$ @kbd{bash -c 'tmp="a  b\"'\''@}\\"; echo "address@hidden@}"'}
> +b  c"'@}\
> address@hidden example
[...]

Cheers,
Ralf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]