aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-11-28 20:47:07 +0800
committermaximilian attems <max@stro.at>2011-06-03 18:44:13 +0200
commit3dbe4280553deececb43b42febcdbbc7e2419ed9 (patch)
tree07bcf189f2d01c5b9b0166e0a5a5da34749709d9
parente607e36944b1ce4ca6696e5ef18eb2da8f0c6d9f (diff)
downloadklibc-3dbe4280553deececb43b42febcdbbc7e2419ed9.tar.gz
[klibc] [BUILTIN] Stop documenting EXSHELLPROC
At some point between ash 0.3.5-11.0.1 and ash 0.3.8-37, Debian ash stopped using the EXSHELLPROC exception to handle shell scripts without a magic number. Remove all remaining references to it to avoid confusion. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r--usr/dash/TOUR11
-rw-r--r--usr/dash/error.h1
2 files changed, 1 insertions, 11 deletions
diff --git a/usr/dash/TOUR b/usr/dash/TOUR
index 4baac62689644..056e79b41390f 100644
--- a/usr/dash/TOUR
+++ b/usr/dash/TOUR
@@ -43,10 +43,6 @@ C source files for entries looking like:
back to the main command loop */
}
- SHELLPROC {
- x = 3; /* executed when the shell runs a shell procedure */
- }
-
It pulls this code out into routines which are when particular
events occur. The intent is to improve modularity by isolating
the information about which modules need to be explicitly
@@ -79,12 +75,7 @@ EXCEPTIONS: Code for dealing with exceptions appears in
exceptions.c. The C language doesn't include exception handling,
so I implement it using setjmp and longjmp. The global variable
exception contains the type of exception. EXERROR is raised by
-calling error. EXINT is an interrupt. EXSHELLPROC is an excep-
-tion which is raised when a shell procedure is invoked. The pur-
-pose of EXSHELLPROC is to perform the cleanup actions associated
-with other exceptions. After these cleanup actions, the shell
-can interpret a shell procedure itself without exec'ing a new
-copy of the shell.
+calling error. EXINT is an interrupt.
INTERRUPTS: In an interactive shell, an interrupt will cause an
EXINT exception to return to the main command loop. (Exception:
diff --git a/usr/dash/error.h b/usr/dash/error.h
index 8437ded26e158..94e613ac93e6e 100644
--- a/usr/dash/error.h
+++ b/usr/dash/error.h
@@ -69,7 +69,6 @@ extern int exception;
/* exceptions */
#define EXINT 0 /* SIGINT received */
#define EXERROR 1 /* a generic error */
-#define EXSHELLPROC 2 /* execute a shell procedure */
#define EXEXIT 4 /* exit the shell */