summaryrefslogtreecommitdiffstats
path: root/bin/sh/parser.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-10-01 00:54:14 +0000
committertjr <tjr@FreeBSD.org>2002-10-01 00:54:14 +0000
commita04b479aee620ae0c7e69d0beaea6b55631b3dc6 (patch)
tree6b4e9b3490e38b92d5b91f04acee7b4fc94785d0 /bin/sh/parser.c
parent8d85d3f96b724e383624fdbd12af2a342fabb2d3 (diff)
downloadFreeBSD-src-a04b479aee620ae0c7e69d0beaea6b55631b3dc6.zip
FreeBSD-src-a04b479aee620ae0c7e69d0beaea6b55631b3dc6.tar.gz
Remove bits and pieces of support for atty, which was made obsolete by
adding history and vi/emacs-style line editing to the shell itself. Atty was a user-mode terminal emulator (like screen and window) that did line editing and history.
Diffstat (limited to 'bin/sh/parser.c')
-rw-r--r--bin/sh/parser.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index 69d6405..4df742d 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -927,16 +927,6 @@ readtoken1(int firstc, char const *syntax, char *eofmark, int striptabs)
STARTSTACKSTR(out);
loop: { /* for each line, until end of word */
-#if ATTY
- if (c == '\034' && doprompt
- && attyset() && ! equal(termval(), "emacs")) {
- attyline();
- if (syntax == BASESYNTAX)
- return readtoken();
- c = pgetc();
- goto loop;
- }
-#endif
CHECKEND(); /* set c to PEOF if at end of here document */
for (;;) { /* until end of line or end of word */
CHECKSTRSPACE(3, out); /* permit 3 calls to USTPUTC */
OpenPOWER on IntegriCloud