aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-22 09:03:07 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-22 09:03:07 +0000
commit38f6319421c1892ea5c9c0484cec0e190bdc5c69 (patch)
tree99a63bee4f133df98eb870308c4ca75e8dcbd8c1 /shell/ash.c
parent253ce0029669919fbb7cf60b5c9eab2f791939d8 (diff)
downloadbusybox-w32-38f6319421c1892ea5c9c0484cec0e190bdc5c69.tar.gz
busybox-w32-38f6319421c1892ea5c9c0484cec0e190bdc5c69.tar.bz2
busybox-w32-38f6319421c1892ea5c9c0484cec0e190bdc5c69.zip
cmdedit is not a 'command' editing anymore, it's just editing (generic),
so rename stuff accordingly.
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 8afdf3d21..0f9b3288b 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -1528,7 +1528,7 @@ static struct var varinit[] = {
1528 {0, VSTRFIXED | VTEXTFIXED | VUNSET, "LC_ALL\0", change_lc_all }, 1528 {0, VSTRFIXED | VTEXTFIXED | VUNSET, "LC_ALL\0", change_lc_all },
1529 {0, VSTRFIXED | VTEXTFIXED | VUNSET, "LC_CTYPE\0", change_lc_ctype }, 1529 {0, VSTRFIXED | VTEXTFIXED | VUNSET, "LC_CTYPE\0", change_lc_ctype },
1530#endif 1530#endif
1531#if ENABLE_FEATURE_COMMAND_SAVEHISTORY 1531#if ENABLE_FEATURE_EDITING_SAVEHISTORY
1532 {0, VSTRFIXED | VTEXTFIXED | VUNSET, "HISTFILE\0", NULL }, 1532 {0, VSTRFIXED | VTEXTFIXED | VUNSET, "HISTFILE\0", NULL },
1533#endif 1533#endif
1534}; 1534};
@@ -1654,7 +1654,7 @@ static void initvar(void)
1654 /* 1654 /*
1655 * PS1 depends on uid 1655 * PS1 depends on uid
1656 */ 1656 */
1657#if defined(CONFIG_FEATURE_COMMAND_EDITING) && defined(CONFIG_FEATURE_SH_FANCY_PROMPT) 1657#if ENABLE_FEATURE_EDITING && ENABLE_FEATURE_EDITING_FANCY_PROMPT
1658 vps1.text = "PS1=\\w \\$ "; 1658 vps1.text = "PS1=\\w \\$ ";
1659#else 1659#else
1660 if (!geteuid()) 1660 if (!geteuid())
@@ -6040,7 +6040,7 @@ static char * pfgets(char *line, int len)
6040} 6040}
6041 6041
6042 6042
6043#if ENABLE_FEATURE_COMMAND_EDITING 6043#if ENABLE_FEATURE_EDITING
6044static line_input_t *line_input_state; 6044static line_input_t *line_input_state;
6045//static SKIP_ASH_EXPAND_PRMT(const) char *cmdedit_prompt; 6045//static SKIP_ASH_EXPAND_PRMT(const) char *cmdedit_prompt;
6046static const char *cmdedit_prompt; 6046static const char *cmdedit_prompt;
@@ -6060,7 +6060,7 @@ static void putprompt(const char *s)
6060} 6060}
6061#endif 6061#endif
6062 6062
6063#if ENABLE_FEATURE_COMMAND_EDITING_VI 6063#if ENABLE_FEATURE_EDITING_VI
6064#define setvimode(on) do { \ 6064#define setvimode(on) do { \
6065 if (on) line_input_state->flags |= VI_MODE; \ 6065 if (on) line_input_state->flags |= VI_MODE; \
6066 else line_input_state->flags &= ~VI_MODE; \ 6066 else line_input_state->flags &= ~VI_MODE; \
@@ -6077,11 +6077,11 @@ static int preadfd(void)
6077 parsenextc = buf; 6077 parsenextc = buf;
6078 6078
6079retry: 6079retry:
6080#if ENABLE_FEATURE_COMMAND_EDITING 6080#if ENABLE_FEATURE_EDITING
6081 if (!iflag || parsefile->fd) 6081 if (!iflag || parsefile->fd)
6082 nr = safe_read(parsefile->fd, buf, BUFSIZ - 1); 6082 nr = safe_read(parsefile->fd, buf, BUFSIZ - 1);
6083 else { 6083 else {
6084#if ENABLE_FEATURE_COMMAND_TAB_COMPLETION 6084#if ENABLE_FEATURE_TAB_COMPLETION
6085 line_input_state->path_lookup = pathval(); 6085 line_input_state->path_lookup = pathval();
6086#endif 6086#endif
6087 nr = read_line_input(cmdedit_prompt, buf, BUFSIZ, line_input_state); 6087 nr = read_line_input(cmdedit_prompt, buf, BUFSIZ, line_input_state);
@@ -7916,7 +7916,7 @@ ash_main(int argc, char **argv)
7916 monitor(4, etext, profile_buf, sizeof profile_buf, 50); 7916 monitor(4, etext, profile_buf, sizeof profile_buf, 50);
7917#endif 7917#endif
7918 7918
7919#if ENABLE_FEATURE_COMMAND_EDITING 7919#if ENABLE_FEATURE_EDITING
7920 line_input_state = new_line_input_t(FOR_SHELL | WITH_PATH_LOOKUP); 7920 line_input_state = new_line_input_t(FOR_SHELL | WITH_PATH_LOOKUP);
7921#endif 7921#endif
7922 state = 0; 7922 state = 0;
@@ -7960,7 +7960,7 @@ ash_main(int argc, char **argv)
7960 init(); 7960 init();
7961 setstackmark(&smark); 7961 setstackmark(&smark);
7962 procargs(argc, argv); 7962 procargs(argc, argv);
7963#if ENABLE_FEATURE_COMMAND_SAVEHISTORY 7963#if ENABLE_FEATURE_EDITING_SAVEHISTORY
7964 if (iflag) { 7964 if (iflag) {
7965 const char *hp = lookupvar("HISTFILE"); 7965 const char *hp = lookupvar("HISTFILE");
7966 7966
@@ -8001,7 +8001,7 @@ state3:
8001 evalstring(minusc, 0); 8001 evalstring(minusc, 0);
8002 8002
8003 if (sflag || minusc == NULL) { 8003 if (sflag || minusc == NULL) {
8004#if ENABLE_FEATURE_COMMAND_SAVEHISTORY 8004#if ENABLE_FEATURE_EDITING_SAVEHISTORY
8005 if ( iflag ) { 8005 if ( iflag ) {
8006 const char *hp = lookupvar("HISTFILE"); 8006 const char *hp = lookupvar("HISTFILE");
8007 8007