[Top][All Lists]
[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
- [PATCH] docs: mention another issue with variable expansion, Eric Blake, 2010/08/26
- [PATCHv2] docs: mention another issue with variable expansion, Eric Blake, 2010/08/26
- Re: [PATCHv2] docs: mention another issue with variable expansion,
Ralf Wildenhues <=
- Re: [PATCHv2] docs: mention another issue with variable expansion, Eric Blake, 2010/08/27
- [PATCH 0/2] cleanup $tmp usage, Eric Blake, 2010/08/27
- Re: [PATCH 0/2] cleanup $tmp usage, Ralf Wildenhues, 2010/08/27
- Re: [PATCH 0/2] cleanup $tmp usage, Eric Blake, 2010/08/30
- Re: [PATCH 0/2] cleanup $tmp usage, Ralf Wildenhues, 2010/08/30
- Re: [PATCH 0/2] cleanup $tmp usage, Eric Blake, 2010/08/30
- [PATCH 2/2] config.status: minimize use of $tmp, Eric Blake, 2010/08/27
- Re: [PATCH 2/2] config.status: minimize use of $tmp, Eric Blake, 2010/08/30
- Re: [PATCH 2/2] config.status: minimize use of $tmp, Ralf Wildenhues, 2010/08/30
- Re: [PATCH 2/2] config.status: minimize use of $tmp, Eric Blake, 2010/08/30