4 * Copyright (C) 1989 by Kenneth Almquist. All rights reserved.
5 * This file is part of ash, which is distributed under the terms specified
6 * by the Ash General Public License. See the file named LICENSE.
16 main(argc
, argv
) char **argv
; {
29 if ((p
= *ap
) != NULL
) {
36 } else if (equal(p
, "-e")) {
43 while ((p
= *ap
++) != NULL
) {
44 while ((c
= *p
++) != '\0') {
45 if (c
== '\\' && eflag
) {
47 case 'b': c
= '\b'; break;
48 case 'c': return 0; /* exit */
49 case 'f': c
= '\f'; break;
50 case 'n': c
= '\n'; break;
51 case 'r': c
= '\r'; break;
52 case 't': c
= '\t'; break;
53 case 'v': c
= '\v'; break;
54 case '\\': break; /* c = '\\' */
58 while (--count
>= 0 && (unsigned)(*p
- '0') < 8)
59 c
= (c
<< 3) + (*p
++ - '0');