#define FEATURE_GETUSERNAME_AND_HOMEDIR should be always #defined
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 23 Dec 2006 01:21:55 +0000 (01:21 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 23 Dec 2006 01:21:55 +0000 (01:21 -0000)
shell/cmdedit.c

index 93758c9fbdc6bd6d368eff8e423029b90ea5c929..bc9cc5ef405a9b38e2c7195f32a2b8d4c5e64c07 100644 (file)
@@ -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