Date: Fri, 19 Aug 2022 20:19:23 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 265399] /bin/sh: improve echo -e builtin Message-ID: <bug-265399-227-iLZFv6YjlK@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-265399-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265399 Jilles Tjoelker <jilles@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jilles@FreeBSD.org --- Comment #3 from Jilles Tjoelker <jilles@FreeBSD.org> --- It is indeed unfortunate that /bin/echo and /bin/sh's echo builtin behave differently, but it is documented (sh(1) describes the echo builtin, and echo(1) warns that shell builtins may differ) and changing it now will cause breakage for little benefit. For example, the existing echo builtin allows 'echo -n STRING' for any string, while the proposed patch breaks this for the string "-e". Also note that -ne can be replaced by -e and adding \c to the last operand. An alternative is replacing echo use with an appropriate printf command. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265399-227-iLZFv6YjlK>
