aboutsummaryrefslogtreecommitdiff
path: root/ash.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-19 00:22:23 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-19 00:22:23 +0000
commitd63dee4019a62d1c5bb31755d9866ef921aff76b (patch)
tree1c5995c19999e51b9ed93ee12c2b4a8b421bdcd1 /ash.c
parentf4c208937c997f9b65e77b9304a527b03349d219 (diff)
downloadbusybox-d63dee4019a62d1c5bb31755d9866ef921aff76b.tar.gz
Add an option to make the shells not advertise their busybox nature
Diffstat (limited to 'ash.c')
-rw-r--r--ash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ash.c b/ash.c
index 5933b1518..486386a25 100644
--- a/ash.c
+++ b/ash.c
@@ -3224,8 +3224,10 @@ setinteractive(int on)
is_interactive = on;
if (do_banner==0 && is_interactive) {
/* Looks like they want an interactive shell */
+#ifndef BB_FEATURE_SH_EXTRA_QUIET
printf( "\n\n" BB_BANNER " Built-in shell (ash)\n");
printf( "Enter 'help' for a list of built-in commands.\n\n");
+#endif
do_banner=1;
}
}
@@ -12728,7 +12730,7 @@ findvar(struct var **vpp, const char *name)
/*
* Copyright (c) 1999 Herbert Xu <herbert@debian.org>
* This file contains code for the times builtin.
- * $Id: ash.c,v 1.27 2001/10/19 00:08:17 andersen Exp $
+ * $Id: ash.c,v 1.28 2001/10/19 00:22:22 andersen Exp $
*/
static int timescmd (int argc, char **argv)
{