summaryrefslogtreecommitdiff
path: root/bin/ksh
diff options
context:
space:
mode:
authorjschauma <jschauma@NetBSD.org>2002-09-20 20:07:09 +0000
committerjschauma <jschauma@NetBSD.org>2002-09-20 20:07:09 +0000
commitb186175fa13e0705287b9a1cb303249ca2f4aeba (patch)
treebbf183f66257fad55e4707a59c2ddfab09291889 /bin/ksh
parenta5f0bfc173811c54de0033d26a5607cfcb5b628d (diff)
We don't have 'newgrp' -> ifdef the builtin alias. This prevents
the shell from unexpectedly dying if a user enters the (nonexistent) 'newgrp' command. OK'd by perry. As seen in OpenBSD.
Diffstat (limited to 'bin/ksh')
-rw-r--r--bin/ksh/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/ksh/main.c b/bin/ksh/main.c
index 330d51c5345..ee88ebce6a7 100644
--- a/bin/ksh/main.c
+++ b/bin/ksh/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.7 2002/07/11 10:53:19 wiz Exp $ */
+/* $NetBSD: main.c,v 1.8 2002/09/20 20:07:09 jschauma Exp $ */
/*
* startup, main loop, environments and error handling
@@ -66,7 +66,9 @@ static const char *const initcoms [] = {
#ifdef KSH
/* Aliases that are builtin commands in at&t */
"login=exec login",
+#ifndef __NetBSD__
"newgrp=exec newgrp",
+#endif /* __NetBSD__ */
#endif /* KSH */
NULL,
/* this is what at&t ksh seems to track, with the addition of emacs */