Harald van Dijk <[email protected]> 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 <[email protected]>
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to