* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
* This code is derived from software contributed to Berkeley by
* %sccs.include.redist.c%
* @(#)echo.c 8.1 (Berkeley) %G%
main(argc
, argv
) char **argv
; {
} else if (equal(p
, "-e")) {
while ((p
= *ap
++) != NULL
) {
while ((c
= *p
++) != '\0') {
if (c
== '\\' && eflag
) {
case 'b': c
= '\b'; break;
case 'c': return 0; /* exit */
case 'f': c
= '\f'; break;
case 'n': c
= '\n'; break;
case 'r': c
= '\r'; break;
case 't': c
= '\t'; break;
case 'v': c
= '\v'; break;
case '\\': break; /* c = '\\' */
while (--count
>= 0 && (unsigned)(*p
- '0') < 8)
c
= (c
<< 3) + (*p
++ - '0');