summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-23 01:21:55 +0000
committerDenis Vlasenko2006-12-23 01:21:55 +0000
commit7e46cf748ead14b4060f0825762fb6393cf89a91 (patch)
tree917f70ca3146621828df74a851282b678b4444f9 /shell
parent2a813e20e2a8720160a059a036cb6c066044f709 (diff)
downloadbusybox-7e46cf748ead14b4060f0825762fb6393cf89a91.zip
busybox-7e46cf748ead14b4060f0825762fb6393cf89a91.tar.gz
#define FEATURE_GETUSERNAME_AND_HOMEDIR should be always #defined
Diffstat (limited to 'shell')
-rw-r--r--shell/cmdedit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index 93758c9..bc9cc5e 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -58,9 +58,8 @@
#if ENABLE_FEATURE_COMMAND_EDITING
-#if ENABLE_FEATURE_COMMAND_USERNAME_COMPLETION || ENABLE_FEATURE_SH_FANCY_PROMPT
-#define ENABLE_FEATURE_GETUSERNAME_AND_HOMEDIR 1
-#endif
+#define ENABLE_FEATURE_GETUSERNAME_AND_HOMEDIR \
+(ENABLE_FEATURE_COMMAND_USERNAME_COMPLETION || ENABLE_FEATURE_SH_FANCY_PROMPT)
/* Maximum length of the linked list for the command line history */
#if !ENABLE_FEATURE_COMMAND_HISTORY