summaryrefslogtreecommitdiff
path: root/general.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2020-03-02 10:24:36 -0500
committerChet Ramey <chet.ramey@case.edu>2020-03-02 10:24:36 -0500
commit47c7369e84afc456bb73c6cabee918dcd44adda9 (patch)
treed4625b1eed33eab57fcab5a91d9b2276be67d864 /general.c
parent0df4ddca3f371bc258fe4185cdec36fce3e7be7b (diff)
downloadbash-47c7369e84afc456bb73c6cabee918dcd44adda9.tar.gz
commit bash-20200228 snapshot
Diffstat (limited to 'general.c')
-rw-r--r--general.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/general.c b/general.c
index 76400e27..54818bc2 100644
--- a/general.c
+++ b/general.c
@@ -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);