From bedabe82c4b4ede881dd7032ec9d84c5aad25c5d Mon Sep 17 00:00:00 2001 From: mph Date: Mon, 26 Jun 2000 22:43:30 +0000 Subject: Add \a and \e to "echo -e" escape handling. --- bin/sh/bltin/echo.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/sh') diff --git a/bin/sh/bltin/echo.c b/bin/sh/bltin/echo.c index 8ce088a..850a811 100644 --- a/bin/sh/bltin/echo.c +++ b/bin/sh/bltin/echo.c @@ -79,8 +79,10 @@ main(argc, argv) 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 'e': c = '\e'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break; case 'r': c = '\r'; break; -- cgit v1.1