[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#51311: [PATCH] echo: update --help to document edge cases
From: |
Rasmus Borup Hansen |
Subject: |
Re: bug#51311: [PATCH] echo: update --help to document edge cases |
Date: |
Fri, 22 Oct 2021 09:27:23 +0200 |
> On 21 Oct 2021, at 18.26, Frank Seifferth <seifferth@cl.uni-heidelberg.de>
> wrote:
>
> The only way
> to echo the string '-n', for instance, is to specify the dash in either
> octal or hexadecimal representation (e.g. 'echo -e "\x2dn"').
You can also choose to escape the 'n' (e.g. /bin/echo -e '-\x6e'), so I suggest
writing this instead:
To echo the string '-n' one of the characters has to be specified in either
octal or hexadecimal representation (e.g. 'echo -e "\x2dn").
Best,
Rasmus