Add \a and \e to "echo -e" escape handling.

This commit is contained in:
mph 2000-06-26 22:43:30 +00:00
parent f692c484ab
commit c859f71bc9

View File

@ -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;