Harald van Dijk <har...@gigawatt.nl> wrote:
>
> Thanks, that helps to clarify. Unfortunately, the valid alternative 
> given there:
> 
>   sh -c 'echo "${x:-\}}"'
> 
> seemingly incorrectly prints \} with dash and with bash, so that is a 
> non-option at this time for me.

If you need to print anything involving a backspace you should
use printf and not echo.

Cheers,
-- 
Email: Herbert Xu <herb...@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to