diff options
author | Matthew Hunt <mph@FreeBSD.org> | 2000-06-26 22:43:30 +0000 |
---|---|---|
committer | Matthew Hunt <mph@FreeBSD.org> | 2000-06-26 22:43:30 +0000 |
commit | a585d134513efbb6b7c35e2b8782a9b7034d6c39 (patch) | |
tree | 9a92203b540d16d9588b1acb889c17883e288996 /bin/sh/bltin | |
parent | c5225ad92fc972c0e7ef1f043fba696b65bb7a03 (diff) | |
download | src-a585d134513efbb6b7c35e2b8782a9b7034d6c39.tar.gz src-a585d134513efbb6b7c35e2b8782a9b7034d6c39.zip |
Add \a and \e to "echo -e" escape handling.
Notes
Notes:
svn path=/head/; revision=62137
Diffstat (limited to 'bin/sh/bltin')
-rw-r--r-- | bin/sh/bltin/echo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/sh/bltin/echo.c b/bin/sh/bltin/echo.c index 8ce088ad060e..850a8110fa67 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; |