On 19/11/10 14:53, Herbert Xu wrote:
Harald van Dijk<[email protected]> wrote:sh -c 'echo "${x:-\}}"'If you need to print anything involving a backspace you should use printf and not echo.
It's true that backslashes should not be passed to echo, but assuming unset or empty x, "${x:-\}}" should expand to "}", and that is all echo should see.
Cheers, Harald -- 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
