Subject: [POSIX] echo builtin fix
To: NetBSD current users <current-users@netbsd.org>
From: Thierry Laronde <tlaronde@polynum.com>
List: current-users
Date: 10/07/2002 21:51:55
Hello,
BTW, sh echo builtin misses one of the susv3 feature: echoing '\a'...
Here is the colossal patch:
--- src/bin/sh/bltin/echo.c Sun Nov 3 13:06:22 1996
+++ src/bin/sh/bltin/echo.c Mon Oct 7 21:39:46 2002
@@ -77,6 +77,7 @@
while ((c = *p++) != '\0') {
if (c == '\\' && eflag) {
switch (*p++) {
+ case 'a': c = '\a'; break;
case 'b': c = '\b'; break;
case 'c': return 0; /* exit */
case 'f': c = '\f'; break;
One of the greatest contributions one has ever seen...
--
Thierry Laronde (Alceste) <tlaronde@polynum.org>
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C