Re: patch for echo

Jim Meyering <[email protected]> Mon, 05 Apr 2004 13:04:14 +0200
Newsgroups gmane.comp.gnu.sh-utils.bugs
Message-ID <[email protected]>
Arne Becker <[email protected]> wrote:
> Since it is impossible to output just "-en" with the current echo,
> here's a patch for that.
...

Thanks for the patch, but do we really need that?
How about this?

  $ /bin/echo -e '\055en'
  -en

These days, it's better to use printf rather than echo,
unless you care about portability to the few last-gasp systems
that lack that program/shell-built-in.