[Toybox] echo command vs octal and hexadecimal formatting.
Rob Landley
rob at landley.net
Sat Feb 11 11:28:13 PST 2012
On 02/11/2012 08:12 AM, Elie De Brauwer wrote:
> Hello all,
>
> In attachment a patch which addresses several points:
> - echo -e has support for octal in the code but the help does not show
> this.
> - since octal gives me headaches (i know, it's an acquired taste) and
> my cksum unittest (see previous e-mail) made use of echo \x I've added
> support for hexadecimal characters in echo (if the cksum ever use the
> supplied echo command this would expose itself). Even though the
> opengroup page doesn't explicitly list support for \x (but man echo on
> my box does).
I.E. it's a Linux extension, but a reasonable one.
My default is to support all posix behavior and not support any
nonstandard behavior, but there are lots of exceptions in both
directions. (The bar for deviating from the default isn't that high, it
just means "think about it before doing it".)
Rob
1328988493.0
More information about the Toybox
mailing list