summaryrefslogtreecommitdiff
path: root/jobs.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2022-03-11 16:09:24 -0500
committerChet Ramey <chet.ramey@case.edu>2022-03-11 16:09:24 -0500
commitb6a567e7f13406952cbb1d1adb2f00b2260a871e (patch)
treeaae41d433ff68ad0fb17ba8e5d39987adb4be684 /jobs.c
parentb4e5e5505cc4495c6237c32a65ba62ebcc497b31 (diff)
downloadbash-b6a567e7f13406952cbb1d1adb2f00b2260a871e.tar.gz
fix problem with saving tty state after running a command with 'bind -x'; builtins that create associative arrays can now convert existing scalar variables to associative arrays
Diffstat (limited to 'jobs.c')
-rw-r--r--jobs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs.c b/jobs.c
index 25289f4a..77d9dc35 100644
--- a/jobs.c
+++ b/jobs.c
@@ -3117,8 +3117,8 @@ if (job == NO_JOB)
else
#if defined (READLINE)
/* We don't want to do this if we are running a process during
- programmable completion. */
- if (RL_ISSTATE (RL_STATE_COMPLETING) == 0)
+ programmable completion or a command bound to `bind -x'. */
+ if (RL_ISSTATE (RL_STATE_COMPLETING|RL_STATE_DISPATCHING|RL_STATE_TERMPREPPED) == 0)
#endif
get_tty_state ();