summaryrefslogtreecommitdiffstats
path: root/bin/sh/error.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-09-03 14:16:06 +0000
committerpeter <peter@FreeBSD.org>1996-09-03 14:16:06 +0000
commit0475c084c22d974adb50e049f8526e7ba3325c20 (patch)
tree813be7fe988c4549d7c49e07f8aa26f6bed0c68a /bin/sh/error.c
parent46c0540195d8219fc18878aaf2e8f89c0c6778dc (diff)
downloadFreeBSD-src-0475c084c22d974adb50e049f8526e7ba3325c20.zip
FreeBSD-src-0475c084c22d974adb50e049f8526e7ba3325c20.tar.gz
Fix for PR#1287. This makes sh behave sensibly in case statements in the
face of aliases. Note, bash doesn't do aliases while running scripts, but "real" ksh does.. Also: Reduce redundant .Nm macros in (unused) bltin/echo.1 nuke error2, it's hardly used. More -Wall cleanups dont do certain history operations if NO_HISTORY defined handle quad_t's from resource limits Submitted by: Steve Price <sprice@hiwaay.net> (minor tweaks by me)
Diffstat (limited to 'bin/sh/error.c')
-rw-r--r--bin/sh/error.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/bin/sh/error.c b/bin/sh/error.c
index ca5c17b..9bd94ca 100644
--- a/bin/sh/error.c
+++ b/bin/sh/error.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: error.c,v 1.3 1995/05/30 00:07:10 rgrimes Exp $
+ * $Id: error.c,v 1.4 1996/09/01 10:19:53 peter Exp $
*/
#ifndef lint
@@ -112,14 +112,6 @@ onint() {
-void
-error2(a, b)
- char *a, *b;
- {
- error("%s: %s", a, b);
-}
-
-
/*
* Error is called to raise the error exception. If the first argument
* is not NULL then error prints an error message using printf style
OpenPOWER on IntegriCloud