aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/bltin
diff options
context:
space:
mode:
authorMatthew Hunt <mph@FreeBSD.org>2000-06-26 22:43:30 +0000
committerMatthew Hunt <mph@FreeBSD.org>2000-06-26 22:43:30 +0000
commita585d134513efbb6b7c35e2b8782a9b7034d6c39 (patch)
tree9a92203b540d16d9588b1acb889c17883e288996 /bin/sh/bltin
parentc5225ad92fc972c0e7ef1f043fba696b65bb7a03 (diff)
downloadsrc-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.c2
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;