bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: echo does not recognize backslash escapes in POSIX mode


From: Jim Meyering
Subject: Re: echo does not recognize backslash escapes in POSIX mode
Date: Tue, 01 Jun 2004 15:10:29 +0200

Paul Eggert <address@hidden> wrote:
...
> That being said, I noticed several POSIX- and bash-compatibility
> problems in coreutils echo.  Here is a proposed patch.
...
> diff -p -u -r1.205 NEWS
> --- NEWS      8 May 2004 22:24:25 -0000       1.205
> +++ NEWS      13 May 2004 08:15:04 -0000
> @@ -16,6 +16,11 @@ GNU coreutils NEWS
>
>    ls no longer segfaults on systems for which SIZE_MAX != (size_t) -1
>
> +  echo now conforms to POSIX better.  It supports the \0ooo syntax for
> +  octal escapes, and \c now terminates printing immediately.  If
> +  POSIXLY_CORRECT is set and the first argument is not "-n", echo now
> +  outputs all option-like arguments instead of treating them as options.
> +
>  ** New features
>
>    pwd now works even when run from a working directory whose name
> @@ -68,6 +73,9 @@ GNU coreutils NEWS
>
>    `date' has a new option --iso-8601=ns that outputs
>    nanosecond-resolution time stamps.
> +
> +  echo -e '\xHH' now outputs a byte whose hexadecimal value is HH,
> +  for compatibility with bash.
>

Thanks!
I've applied that.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]