diff options
author | Chet Ramey <chet.ramey@case.edu> | 2020-03-02 10:24:36 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2020-03-02 10:24:36 -0500 |
commit | 47c7369e84afc456bb73c6cabee918dcd44adda9 (patch) | |
tree | d4625b1eed33eab57fcab5a91d9b2276be67d864 /general.c | |
parent | 0df4ddca3f371bc258fe4185cdec36fce3e7be7b (diff) | |
download | bash-47c7369e84afc456bb73c6cabee918dcd44adda9.tar.gz |
commit bash-20200228 snapshot
Diffstat (limited to 'general.c')
-rw-r--r-- | general.c | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -1188,21 +1188,9 @@ bash_tilde_expand (s, assign_p) const char *s; int assign_p; { - int old_immed, old_term, r; + int r; char *ret; -#if 0 - old_immed = interrupt_immediately; - old_term = terminate_immediately; - /* We want to be able to interrupt tilde expansion. Ordinarily, we can just - jump to top_level, but we don't want to run any trap commands in a signal - handler context. We might be able to get away with just checking for - things like SIGINT and SIGQUIT. */ - if (any_signals_trapped () < 0) - interrupt_immediately = 1; - terminate_immediately = 1; -#endif - tilde_additional_prefixes = assign_p == 0 ? (char **)0 : (assign_p == 2 ? bash_tilde_prefixes2 : bash_tilde_prefixes); if (assign_p == 2) @@ -1211,11 +1199,6 @@ bash_tilde_expand (s, assign_p) r = (*s == '~') ? unquoted_tilde_word (s) : 1; ret = r ? tilde_expand (s) : savestring (s); -#if 0 - interrupt_immediately = old_immed; - terminate_immediately = old_term; -#endif - QUIT; return (ret); |