diff options
author | Jari Aalto <jari.aalto@cante.net> | 1999-02-19 17:11:39 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:52 +0000 |
commit | b72432fdcc59300c6fe7c9d6c8a31ad3447933f5 (patch) | |
tree | b9899162338c2ff3fd83a8aef8831cb119e85cd7 /eval.c | |
parent | bc4cd23ce958feda898c618215f94d8a4e8f4ffa (diff) | |
download | android_external_bash-b72432fdcc59300c6fe7c9d6c8a31ad3447933f5.tar.gz android_external_bash-b72432fdcc59300c6fe7c9d6c8a31ad3447933f5.tar.bz2 android_external_bash-b72432fdcc59300c6fe7c9d6c8a31ad3447933f5.zip |
Imported from ../bash-2.03.tar.gz.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 26 |
1 files changed, 24 insertions, 2 deletions
@@ -41,6 +41,10 @@ #include "input.h" #include "execute_cmd.h" +#if defined (HISTORY) +# include "bashhist.h" +#endif + extern int yyparse (); extern int EOF_reached; @@ -105,7 +109,7 @@ reader_loop () break; default: - programming_error ("reader_loop: bad jump: code %d", code); + command_error ("reader_loop", CMDERR_BADJUMP, code, 0); } } @@ -161,7 +165,7 @@ static sighandler alrm_catcher(i) int i; { - printf ("%ctimed out waiting for input: auto-logout\n", '\07'); + printf ("\007timed out waiting for input: auto-logout\n"); jump_to_top_level (EXITPROG); SIGRETURN (0); } @@ -269,6 +273,17 @@ parse_string_to_word_list (s, whom) { WORD_LIST *wl; COMMAND *saved_global; +#if defined (HISTORY) + int old_remember_on_history, old_history_expansion_inhibited; +#endif + +#if defined (HISTORY) + old_remember_on_history = remember_on_history; +# if defined (BANG_HISTORY) + old_history_expansion_inhibited = history_expansion_inhibited; +# endif + bash_history_disable (); +#endif push_stream (1); @@ -293,5 +308,12 @@ parse_string_to_word_list (s, whom) pop_stream (); +#if defined (HISTORY) + remember_on_history = old_remember_on_history; +# if defined (BANG_HISTORY) + history_expansion_inhibited = old_history_expansion_inhibited; +# endif /* BANG_HISTORY */ +#endif /* HISTORY */ + return (wl); } |