[BusyBox-cvs] busybox/shell Config.in, 1.11, 1.12 cmdedit.c, 1.84, 1.85

Glenn McGrath bug1 at busybox.net
Sat Jan 3 12:07:35 UTC 2004


Update of /var/cvs/busybox/shell
In directory nail:/tmp/cvs-serv5711/shell

Modified Files:
	Config.in cmdedit.c 
Log Message:
Declare dependencies of command line editing in the build system


Index: Config.in
===================================================================
RCS file: /var/cvs/busybox/shell/Config.in,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- Config.in	22 Oct 2003 09:58:47 -0000	1.11
+++ Config.in	3 Jan 2004 12:07:32 -0000	1.12
@@ -137,71 +137,70 @@
 comment "Bourne Shell Options"
 	depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
 
-config CONFIG_FEATURE_COMMAND_EDITING
-	bool "command line editing"
+config CONFIG_FEATURE_SH_EXTRA_QUIET
+	bool "Hide message on interactive shell startup"
 	default n
 	depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
 	help
-	  Enable command editing in shell.
+	  Remove the busybox introduction when starting a shell.
 
-config CONFIG_FEATURE_COMMAND_SAVEHISTORY
-	bool "  history saving"
+config CONFIG_FEATURE_SH_STANDALONE_SHELL
+	bool "Standalone shell"
 	default n
-	depends on CONFIG_ASH
+	depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
 	help
-	  Enable history saving in ash shell.
+	  Have all the busybox commands built into the shell, creating
+	  a standalone shell.
 
-config CONFIG_FEATURE_COMMAND_TAB_COMPLETION
-	bool "tab completion"
+config CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN
+	bool "Standalone shell -- applets always win"
 	default n
-	depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
+	depends on CONFIG_FEATURE_SH_STANDALONE_SHELL
 	help
-	  Enable tab completion in shell.
+	  Use a command builtin to the shell over one with the same name,
+	  that may be on the system.
 
-config CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION
-	bool "username completion"
+config CONFIG_FEATURE_COMMAND_EDITING
+	bool "command line editing"
 	default n
 	depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
 	help
-	  Enable username completion in shell.
+	  Enable command editing in shell.
 
 config CONFIG_FEATURE_COMMAND_HISTORY
 	int "history size"
 	default 15
-	depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
+	depends on CONFIG_FEATURE_COMMAND_EDITING
 	help
 	  Specify command history size in shell.
 
-config CONFIG_FEATURE_SH_STANDALONE_SHELL
-	bool "Standalone shell"
+config CONFIG_FEATURE_COMMAND_SAVEHISTORY
+	bool "history saving"
 	default n
-	depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
+	depends on CONFIG_ASH && CONFIG_FEATURE_COMMAND_EDITING
 	help
-	  Have all the busybox commands built into the shell, creating
-	  a standalone shell.
+	  Enable history saving in ash shell.
 
-config CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN
-	bool "Standalone shell -- applets always win"
+config CONFIG_FEATURE_COMMAND_TAB_COMPLETION
+	bool "tab completion"
 	default n
-	depends on CONFIG_FEATURE_SH_STANDALONE_SHELL
+	depends on CONFIG_FEATURE_COMMAND_EDITING
 	help
-	  Use a command builtin to the shell over one with the same name,
-	  that may be on the system.
+	  Enable tab completion in shell.
+
+config CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION
+	bool "username completion"
+	default n
+	depends on CONFIG_FEATURE_COMMAND_TAB_COMPLETION
+	help
+	  Enable username completion in shell.
 
 config CONFIG_FEATURE_SH_FANCY_PROMPT
 	bool "Fancy shell prompts"
 	default n
-	depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
+	depends on CONFIG_FEATURE_COMMAND_EDITING
 	help
 	  Setting this option allows for prompts to use things like \w and
 	  \$ and also using escape codes.
 
-config CONFIG_FEATURE_SH_EXTRA_QUIET
-	bool "Hide message on interactive shell startup"
-	default n
-	depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
-	help
-	  Remove the busybox introduction when starting a shell.
-
 endmenu
-

Index: cmdedit.c
===================================================================
RCS file: /var/cvs/busybox/shell/cmdedit.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- cmdedit.c	23 Dec 2003 20:24:51 -0000	1.84
+++ cmdedit.c	3 Jan 2004 12:07:32 -0000	1.85
@@ -49,11 +49,7 @@
 #define Isprint(c) ( (c) >= ' ' && (c) != ((unsigned char)'\233') )
 #endif
 
-#ifndef TEST
-
-#define D(x)
-
-#else
+#ifdef TEST
 
 /* pretect redefined for test */
 #undef CONFIG_FEATURE_COMMAND_EDITING
@@ -68,8 +64,6 @@
 #define CONFIG_FEATURE_NONPRINTABLE_INVERSE_PUT
 #define CONFIG_FEATURE_CLEAN_UP
 
-#define D(x)  x
-
 #endif                                                  /* TEST */
 
 #ifdef CONFIG_FEATURE_COMMAND_TAB_COMPLETION
@@ -79,10 +73,6 @@
 
 #ifdef CONFIG_FEATURE_COMMAND_EDITING
 
-#ifndef CONFIG_FEATURE_COMMAND_TAB_COMPLETION
-#undef  CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION
-#endif
-
 #if defined(CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION) || defined(CONFIG_FEATURE_SH_FANCY_PROMPT)
 #define CONFIG_FEATURE_GETUSERNAME_AND_HOMEDIR
 #endif




More information about the busybox-cvs mailing list