aboutsummaryrefslogtreecommitdiff
path: root/shell/lash.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-22 09:03:07 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-22 09:03:07 +0000
commitb757f0f15d33c978e143afe44ab41d3d9d2e0e2a (patch)
tree99a63bee4f133df98eb870308c4ca75e8dcbd8c1 /shell/lash.c
parenta9575bf5b51dcbc32ca6b3ca203d0cf05cf011ee (diff)
downloadbusybox-w32-b757f0f15d33c978e143afe44ab41d3d9d2e0e2a.tar.gz
busybox-w32-b757f0f15d33c978e143afe44ab41d3d9d2e0e2a.tar.bz2
busybox-w32-b757f0f15d33c978e143afe44ab41d3d9d2e0e2a.zip
cmdedit is not a 'command' editing anymore, it's just editing (generic),
so rename stuff accordingly. git-svn-id: svn://busybox.net/trunk/busybox@17451 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell/lash.c')
-rw-r--r--shell/lash.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/shell/lash.c b/shell/lash.c
index a09a9a9b1..4ea4e6763 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -365,7 +365,7 @@ static int builtin_export(struct child_prog *child)
365 res = putenv(v); 365 res = putenv(v);
366 if (res) 366 if (res)
367 bb_perror_msg("export"); 367 bb_perror_msg("export");
368#ifdef CONFIG_FEATURE_SH_FANCY_PROMPT 368#ifdef CONFIG_FEATURE_EDITING_FANCY_PROMPT
369 if (strncmp(v, "PS1=", 4)==0) 369 if (strncmp(v, "PS1=", 4)==0)
370 PS1 = getenv("PS1"); 370 PS1 = getenv("PS1");
371#endif 371#endif
@@ -613,7 +613,7 @@ static inline void restore_redirects(int squirrel[])
613 613
614static inline void cmdedit_set_initial_prompt(void) 614static inline void cmdedit_set_initial_prompt(void)
615{ 615{
616#ifndef CONFIG_FEATURE_SH_FANCY_PROMPT 616#if !ENABLE_FEATURE_EDITING_FANCY_PROMPT
617 PS1 = NULL; 617 PS1 = NULL;
618#else 618#else
619 PS1 = getenv("PS1"); 619 PS1 = getenv("PS1");
@@ -624,7 +624,7 @@ static inline void cmdedit_set_initial_prompt(void)
624 624
625static inline void setup_prompt_string(char **prompt_str) 625static inline void setup_prompt_string(char **prompt_str)
626{ 626{
627#ifndef CONFIG_FEATURE_SH_FANCY_PROMPT 627#if !ENABLE_FEATURE_EDITING_FANCY_PROMPT
628 /* Set up the prompt */ 628 /* Set up the prompt */
629 if (shell_context == 0) { 629 if (shell_context == 0) {
630 free(PS1); 630 free(PS1);
@@ -639,7 +639,7 @@ static inline void setup_prompt_string(char **prompt_str)
639#endif 639#endif
640} 640}
641 641
642#if ENABLE_FEATURE_COMMAND_EDITING 642#if ENABLE_FEATURE_EDITING
643static line_input_t *line_input_state; 643static line_input_t *line_input_state;
644#endif 644#endif
645 645
@@ -661,7 +661,7 @@ static int get_command(FILE * source, char *command)
661 if (source == stdin) { 661 if (source == stdin) {
662 setup_prompt_string(&prompt_str); 662 setup_prompt_string(&prompt_str);
663 663
664#if ENABLE_FEATURE_COMMAND_EDITING 664#if ENABLE_FEATURE_EDITING
665 /* 665 /*
666 ** enable command line editing only while a command line 666 ** enable command line editing only while a command line
667 ** is actually being read; otherwise, we'll end up bequeathing 667 ** is actually being read; otherwise, we'll end up bequeathing
@@ -1507,7 +1507,7 @@ int lash_main(int argc_l, char **argv_l)
1507 argc = argc_l; 1507 argc = argc_l;
1508 argv = argv_l; 1508 argv = argv_l;
1509 1509
1510#if ENABLE_FEATURE_COMMAND_EDITING 1510#if ENABLE_FEATURE_EDITING
1511 line_input_state = new_line_input_t(FOR_SHELL); 1511 line_input_state = new_line_input_t(FOR_SHELL);
1512#endif 1512#endif
1513 1513
@@ -1572,7 +1572,7 @@ int lash_main(int argc_l, char **argv_l)
1572 1572
1573 if (ENABLE_FEATURE_CLEAN_UP) atexit(free_memory); 1573 if (ENABLE_FEATURE_CLEAN_UP) atexit(free_memory);
1574 1574
1575 if (ENABLE_FEATURE_COMMAND_EDITING) cmdedit_set_initial_prompt(); 1575 if (ENABLE_FEATURE_EDITING) cmdedit_set_initial_prompt();
1576 else PS1 = NULL; 1576 else PS1 = NULL;
1577 1577
1578 return (busy_loop(input)); 1578 return (busy_loop(input));