multiSSH3 6.48__tar.gz → 6.49__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. {multissh3-6.48/multiSSH3.egg-info → multissh3-6.49}/PKG-INFO +19 -5
  2. {multissh3-6.48 → multissh3-6.49}/README.md +18 -4
  3. {multissh3-6.48 → multissh3-6.49}/mssh_complete.py +141 -130
  4. {multissh3-6.48 → multissh3-6.49/multiSSH3.egg-info}/PKG-INFO +19 -5
  5. {multissh3-6.48 → multissh3-6.49}/multiSSH3.py +2 -2
  6. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_keys.py +219 -148
  7. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_picker.py +82 -2
  8. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_terminal.py +17 -0
  9. {multissh3-6.48 → multissh3-6.49}/LICENSE +0 -0
  10. {multissh3-6.48 → multissh3-6.49}/MANIFEST.in +0 -0
  11. {multissh3-6.48 → multissh3-6.49}/multiSSH3.egg-info/SOURCES.txt +0 -0
  12. {multissh3-6.48 → multissh3-6.49}/multiSSH3.egg-info/dependency_links.txt +0 -0
  13. {multissh3-6.48 → multissh3-6.49}/multiSSH3.egg-info/entry_points.txt +0 -0
  14. {multissh3-6.48 → multissh3-6.49}/multiSSH3.egg-info/top_level.txt +0 -0
  15. {multissh3-6.48 → multissh3-6.49}/pytest.ini +0 -0
  16. {multissh3-6.48 → multissh3-6.49}/scripts/multiSSH3 +0 -0
  17. {multissh3-6.48 → multissh3-6.49}/setup.cfg +0 -0
  18. {multissh3-6.48 → multissh3-6.49}/setup.py +0 -0
  19. {multissh3-6.48 → multissh3-6.49}/tests/bench_complete.py +0 -0
  20. {multissh3-6.48 → multissh3-6.49}/tests/complete_shell_harness.py +0 -0
  21. {multissh3-6.48 → multissh3-6.49}/tests/conftest.py +0 -0
  22. {multissh3-6.48 → multissh3-6.49}/tests/data/run_command_golden.json +0 -0
  23. {multissh3-6.48 → multissh3-6.49}/tests/data/zsh_double_quote_shapes.json +0 -0
  24. {multissh3-6.48 → multissh3-6.49}/tests/data/zsh_double_quote_shapes_6.46.json +0 -0
  25. {multissh3-6.48 → multissh3-6.49}/tests/replay.py +0 -0
  26. {multissh3-6.48 → multissh3-6.49}/tests/shells/Dockerfile.bash3.2 +0 -0
  27. {multissh3-6.48 → multissh3-6.49}/tests/shells/Dockerfile.bash5.0 +0 -0
  28. {multissh3-6.48 → multissh3-6.49}/tests/shells/Dockerfile.bash5.1 +0 -0
  29. {multissh3-6.48 → multissh3-6.49}/tests/shells/Dockerfile.bash5.3 +0 -0
  30. {multissh3-6.48 → multissh3-6.49}/tests/shells/Dockerfile.centos7 +0 -0
  31. {multissh3-6.48 → multissh3-6.49}/tests/shells/Dockerfile.current +0 -0
  32. {multissh3-6.48 → multissh3-6.49}/tests/shells/Dockerfile.el10 +0 -0
  33. {multissh3-6.48 → multissh3-6.49}/tests/shells/Dockerfile.el9 +0 -0
  34. {multissh3-6.48 → multissh3-6.49}/tests/shells/Dockerfile.legacy +0 -0
  35. {multissh3-6.48 → multissh3-6.49}/tests/shells/Dockerfile.modern +0 -0
  36. {multissh3-6.48 → multissh3-6.49}/tests/shells/run_matrix.sh +0 -0
  37. {multissh3-6.48 → multissh3-6.49}/tests/test_cli_branches.py +0 -0
  38. {multissh3-6.48 → multissh3-6.49}/tests/test_cli_option_words.py +0 -0
  39. {multissh3-6.48 → multissh3-6.49}/tests/test_cli_processing.py +0 -0
  40. {multissh3-6.48 → multissh3-6.49}/tests/test_closed_output.py +0 -0
  41. {multissh3-6.48 → multissh3-6.49}/tests/test_color_helpers.py +0 -0
  42. {multissh3-6.48 → multissh3-6.49}/tests/test_command_terminal.py +0 -0
  43. {multissh3-6.48 → multissh3-6.49}/tests/test_compact_hostnames.py +0 -0
  44. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_blesh.py +0 -0
  45. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_cli.py +0 -0
  46. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_context.py +0 -0
  47. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_diagnose.py +0 -0
  48. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_editor.py +0 -0
  49. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_engine.py +0 -0
  50. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_eval.py +0 -0
  51. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_harness.py +0 -0
  52. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_hosts.py +0 -0
  53. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_hoststate.py +0 -0
  54. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_index.py +0 -0
  55. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_lex.py +0 -0
  56. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_mssh_helpers.py +0 -0
  57. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_password_spellings.py +0 -0
  58. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_probe.py +0 -0
  59. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_shells.py +0 -0
  60. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_start.py +0 -0
  61. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_store.py +0 -0
  62. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_suggest.py +0 -0
  63. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_untrusted.py +0 -0
  64. {multissh3-6.48 → multissh3-6.49}/tests/test_complete_zsh_options.py +0 -0
  65. {multissh3-6.48 → multissh3-6.49}/tests/test_config_cli.py +0 -0
  66. {multissh3-6.48 → multissh3-6.49}/tests/test_config_validate.py +0 -0
  67. {multissh3-6.48 → multissh3-6.49}/tests/test_config_values.py +0 -0
  68. {multissh3-6.48 → multissh3-6.49}/tests/test_control_master_config.py +0 -0
  69. {multissh3-6.48 → multissh3-6.49}/tests/test_copy_id.py +0 -0
  70. {multissh3-6.48 → multissh3-6.49}/tests/test_curses_branches.py +0 -0
  71. {multissh3-6.48 → multissh3-6.49}/tests/test_curses_event_loop.py +0 -0
  72. {multissh3-6.48 → multissh3-6.49}/tests/test_curses_tui.py +0 -0
  73. {multissh3-6.48 → multissh3-6.49}/tests/test_curses_wide_chars.py +0 -0
  74. {multissh3-6.48 → multissh3-6.49}/tests/test_expand_hostnames.py +0 -0
  75. {multissh3-6.48 → multissh3-6.49}/tests/test_file_trust.py +0 -0
  76. {multissh3-6.48 → multissh3-6.49}/tests/test_harness_smoke.py +0 -0
  77. {multissh3-6.48 → multissh3-6.49}/tests/test_helpers_extra.py +0 -0
  78. {multissh3-6.48 → multissh3-6.49}/tests/test_history_replay.py +0 -0
  79. {multissh3-6.48 → multissh3-6.49}/tests/test_host.py +0 -0
  80. {multissh3-6.48 → multissh3-6.49}/tests/test_host_validity.py +0 -0
  81. {multissh3-6.48 → multissh3-6.49}/tests/test_hosts_file.py +0 -0
  82. {multissh3-6.48 → multissh3-6.49}/tests/test_identities_only.py +0 -0
  83. {multissh3-6.48 → multissh3-6.49}/tests/test_ipmi_lockout_wait.py +0 -0
  84. {multissh3-6.48 → multissh3-6.49}/tests/test_ipmi_logins.py +0 -0
  85. {multissh3-6.48 → multissh3-6.49}/tests/test_key_path_home.py +0 -0
  86. {multissh3-6.48 → multissh3-6.49}/tests/test_login_drop_retry.py +0 -0
  87. {multissh3-6.48 → multissh3-6.49}/tests/test_main_lifecycle.py +0 -0
  88. {multissh3-6.48 → multissh3-6.49}/tests/test_narrow_terminal.py +0 -0
  89. {multissh3-6.48 → multissh3-6.49}/tests/test_no_hosts.py +0 -0
  90. {multissh3-6.48 → multissh3-6.49}/tests/test_option_no_effect.py +0 -0
  91. {multissh3-6.48 → multissh3-6.49}/tests/test_options_after_command.py +0 -0
  92. {multissh3-6.48 → multissh3-6.49}/tests/test_output_merge.py +0 -0
  93. {multissh3-6.48 → multissh3-6.49}/tests/test_output_robustness.py +0 -0
  94. {multissh3-6.48 → multissh3-6.49}/tests/test_packaging.py +0 -0
  95. {multissh3-6.48 → multissh3-6.49}/tests/test_password_handling.py +0 -0
  96. {multissh3-6.48 → multissh3-6.49}/tests/test_passwords_out_of_ps.py +0 -0
  97. {multissh3-6.48 → multissh3-6.49}/tests/test_run_command.py +0 -0
  98. {multissh3-6.48 → multissh3-6.49}/tests/test_run_command_branches.py +0 -0
  99. {multissh3-6.48 → multissh3-6.49}/tests/test_run_command_characterization.py +0 -0
  100. {multissh3-6.48 → multissh3-6.49}/tests/test_run_command_exit.py +0 -0
  101. {multissh3-6.48 → multissh3-6.49}/tests/test_run_on_hosts.py +0 -0
  102. {multissh3-6.48 → multissh3-6.49}/tests/test_run_on_hosts_modes.py +0 -0
  103. {multissh3-6.48 → multissh3-6.49}/tests/test_runtime_branch_matrix.py +0 -0
  104. {multissh3-6.48 → multissh3-6.49}/tests/test_runtime_dir.py +0 -0
  105. {multissh3-6.48 → multissh3-6.49}/tests/test_shared_lines.py +0 -0
  106. {multissh3-6.48 → multissh3-6.49}/tests/test_smoke_optional.py +0 -0
  107. {multissh3-6.48 → multissh3-6.49}/tests/test_ssh_error_text.py +0 -0
  108. {multissh3-6.48 → multissh3-6.49}/tests/test_ssh_timeouts.py +0 -0
  109. {multissh3-6.48 → multissh3-6.49}/tests/test_sshpass_exit.py +0 -0
  110. {multissh3-6.48 → multissh3-6.49}/tests/test_start_run_on_hosts.py +0 -0
  111. {multissh3-6.48 → multissh3-6.49}/tests/test_stopped_commands.py +0 -0
  112. {multissh3-6.48 → multissh3-6.49}/tests/test_stream_reader.py +0 -0
  113. {multissh3-6.48 → multissh3-6.49}/tests/test_streamed_output.py +0 -0
  114. {multissh3-6.48 → multissh3-6.49}/tests/test_tui_ssh_notices.py +0 -0
  115. {multissh3-6.48 → multissh3-6.49}/tests/test_unavailable_hosts.py +0 -0
  116. {multissh3-6.48 → multissh3-6.49}/tests/test_underscore_settings.py +0 -0
  117. {multissh3-6.48 → multissh3-6.49}/tests/test_waiting.py +0 -0
  118. {multissh3-6.48 → multissh3-6.49}/tests/test_wide_wrap.py +0 -0
  119. {multissh3-6.48 → multissh3-6.49}/tests/vt_grid.py +0 -0
  120. {multissh3-6.48 → multissh3-6.49}/tests/zsh_shapes_probe.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: multiSSH3
3
- Version: 6.48
3
+ Version: 6.49
4
4
  Summary: Run commands on multiple hosts via SSH
5
5
  Home-page: https://github.com/yufei-pan/multiSSH3
6
6
  Author: Yufei Pan
@@ -575,7 +575,9 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
575
575
 
576
576
  > The plain-bash editor binds the space key, so every space typed in bash runs a tiny shell function; Ctrl-R becomes a key macro (the binding it replaced is called for other lines). Uninstall restores both in new shells. Such a function also fires bash's DEBUG trap, which some tools take for the start of a command: a command timer kept with the DEBUG trap (as some prompts keep theirs) counts from the first space typed instead of from Enter, and the preexec hooks of [bash-preexec](https://github.com/rcaloras/bash-preexec) (used by atuin and iTerm2's shell integration) may run at that space, before the line is complete.
577
577
 
578
- > On bash 4.3 to 5.2, if a Ctrl-C after TAB shows `^C` with no new prompt, press Ctrl-C again, not Enter: Enter runs the line without its first letter, so `mssh h rm x` runs `ssh h rm x`; a second Ctrl-C gives a clean prompt ([limitations](docs/limitations.md#ctrl-c-during-tabs-query-loses-the-first-letter-bash-43-to-52)).
578
+ > On bash 4.3 to 5.2, if a Ctrl-C while a remote command's own completion works (`mssh h git chec<TAB>`) shows `^C` with no new prompt, press Ctrl-C again, not Enter: Enter runs the line without its first letter, so `mssh h rm x` runs `ssh h rm x`; a second Ctrl-C gives a clean prompt. It is bash's own bug with any command's completion, fixed in bash 5.3 ([limitations](docs/limitations.md#bash-43-to-52-a-ctrl-c-while-a-remote-commands-own-completion-works)). A Ctrl-C during mssh's own query is no signal there: the line stays as shown.
579
+
580
+ > In plain bash, a Ctrl-C pressed in the first moment after TAB, Ctrl-R or the space that opens the line editor (a millisecond or two, longer on a loaded machine) can still now and then be lost, drop the line but leave Ctrl-C ringing instead of working until the next Enter, or leave a line that Enter runs without its first letter: press Ctrl-C again ([limitations](docs/limitations.md#bash-a-ctrl-c-in-the-first-moment-after-tab-ctrl-r-or-the-line-editors-space)).
579
581
 
580
582
  > In plain bash (without ble.sh), Ctrl-R and the line editor take their keys at the first prompt, through `PROMPT_COMMAND`. Where `PROMPT_COMMAND` is read-only (some audit setups on shared clusters make it so), they are left out without a message; TAB completion still works.
581
583
 
@@ -1414,6 +1416,18 @@ __DEBUG_MODE = False
1414
1416
 
1415
1417
  > `__DEBUG_MODE` is used to control whether to print host thread execution debug information to its stderr.
1416
1418
 
1419
+ ## Upgrading to 6.49 from 6.48
1420
+
1421
+ Run `mssh --completion install` again (bash): the fixes below are in the new glue. What you may notice:
1422
+
1423
+ - Fix (bash before 5.2): on a host setting `TMOUT`, Ctrl-R on an mssh line or the line editor (`MSSH_COMPLETE_EDITOR=1`) and walking away logs out again; it stayed logged in until the next Enter. The menu and the editor close after `TMOUT` seconds without a key, so bash before 5.1 can log out. bash counts `TMOUT` from the prompt, not from the last key, so there a line that takes longer than that from its prompt to Enter in the menu or the editor now logs out when they close, as any line typed that slowly does.
1424
+ - Fix (bash 4.3, 4.4, 5.0): after Ctrl-R and Esc on `mssh h rm x`, after a Ctrl-C in the menu, or after Esc in the editor, a Ctrl-C at the prompt showed nothing and Enter ran `ssh h rm x`. It drops the line again. A Ctrl-C right after Ctrl-R no longer leaves the terminal line by line (Ctrl-U not clearing the line); the first moment after the key is below.
1425
+ - Fix (bash 4.3 to 5.2): a Ctrl-C during TAB's own query (at most `MSSH_COMPLETE_TIMEOUT`, 0.3 s) showed `^C` with no new prompt, and Enter ran the line without its first letter. It is not taken now: the line stays as shown (a bell at most), Enter runs what is shown, and a second Ctrl-C drops it.
1426
+ - Change (bash): a Ctrl-C while the Ctrl-R menu or the line editor opens is their first key: the menu opens and closes and the line stays; the editor shows `mssh ^C` and a fresh prompt. With an engine slow to start, that waits until it is up, or for `MSSH_COMPLETE_START_TIMEOUT` (2 s) at most. The menu or the editor no longer comes up now and then with nothing reading its answer.
1427
+ - Known (bash 4.3 to 5.2): a Ctrl-C while a remote command's own completion works, after mssh's query (`mssh h git chec<TAB>`), still shows `^C` with no new prompt, and Enter runs the line without its first letter: press Ctrl-C again. That is bash's own bug with any command's completion, fixed in bash 5.3 ([limitations](docs/limitations.md#bash-43-to-52-a-ctrl-c-while-a-remote-commands-own-completion-works)). A Ctrl-C in the first moment after TAB, Ctrl-R or the editor's space (a millisecond or two) can still go wrong ([limitations](docs/limitations.md#bash-a-ctrl-c-in-the-first-moment-after-tab-ctrl-r-or-the-line-editors-space)).
1428
+ - The new glue needs the new engine for the line editor: beside an engine before 6.49, space is a plain space.
1429
+ - Known (zsh): the entries 6.48 deferred to 6.49 move to 6.50; zsh is as in 6.48 ([limitations](docs/limitations.md)).
1430
+
1417
1431
  ## Upgrading to 6.48 from 6.47
1418
1432
 
1419
1433
  Run `mssh --completion install` again (zsh and bash): the fixes below are in the new glue. What you may notice:
@@ -1493,7 +1507,7 @@ Run `mssh --completion install` again in bash (with or without ble.sh), zsh and
1493
1507
  - Fix (bash 4.3, 4.4, 5.0): a Ctrl-C up to about 0.06 s after Ctrl-R left the terminal line by line until the next Enter, so Ctrl-U no longer cleared the line. The glue now puts the terminal's mode back.
1494
1508
  - Fix (zsh): in a double-quoted word holding an expansion (`mssh h "rm $PWD/Outer<TAB>`), file names and mssh's history words now go in quoted for the double quote (`Outer\$Inner.class` reached the remote shell as `Outer.class`); `mssh -f "$PWD/zzp<TAB>` completes with the quote closed (6.42: `mssh -f /the/dir/zzp`); the filters for this shell's own functions and parameters apply to a command's name only, so a file here named `_comps`, or a word of a command's own completion such as `_git`, is offered.
1495
1509
  - Fix (bash): `M-*` and `M-?` after a directory in a quote no longer show or insert a hidden second word; a directory beside names left out (those holding whitespace) leaves the quote open as one alone; bash-completion's doubled directory (bash 4.2 and 4.4) no longer closes the quote. A directory completed by `scp`, `rsync` or any other command with a bash-completion completion also leaves the quote open. With `set -o posix` turned on after the glue loaded, TAB on bash before 5.1 completes remote file names (it turns posix mode off for the call, which bash before 5.1 needs for the glue's `<( )`, and back on after it, with `POSIXLY_CORRECT` as it was, exported or not). A Ctrl-C that cuts such a TAB short leaves posix mode off, and `POSIXLY_CORRECT` unset, in two cases: on bash 4.2, whenever it comes (the query or a remote command's own completion), and on bash 4.3, 4.4 and 5.0, when it comes while a remote command's own completion has a child process running (4 of 4 tries on 4.3.48, 4.4.20, 4.4.23 and 5.0.18; a Ctrl-C during the query left it on there in 12 of 12 tries each). The next TAB on an mssh line, or Ctrl-R on any line, puts it back with `POSIXLY_CORRECT` as it was; a TAB on another command, Enter and a new prompt do not. On bash 5.1 and later the glue does not turn it off. On bash 3.2 (macOS's `/bin/bash`) the glue registers nothing and prints nothing.
1496
- - Known limits ([limitations](docs/limitations.md#tmout-after-ctrl-r-or-in-the-line-editor-bash-before-52)): on a `TMOUT` host, Ctrl-R on an mssh line and walking away stays logged in until Enter (bash before 5.2), and so does the line editor (`MSSH_COMPLETE_EDITOR=1`, bash 4.4 to 5.1); a Ctrl-C after Ctrl-R can lose the line's first letter (bash 4.3, 4.4, 5.0), and in a small window (about 0.4% of tries) leaves the terminal cooked; a Ctrl-C during TAB's query shows `^C` with no new prompt (bash 4.3 to 5.2): press Ctrl-C again, not Enter.
1510
+ - Known limits (fixed in 6.49, but for the first moment after the key: see Upgrading to 6.49): on a `TMOUT` host, Ctrl-R on an mssh line and walking away stays logged in until Enter (bash before 5.2), and so does the line editor (`MSSH_COMPLETE_EDITOR=1`, bash 4.4 to 5.1); a Ctrl-C after Ctrl-R can lose the line's first letter (bash 4.3, 4.4, 5.0), and in a small window (about 0.4% of tries) leaves the terminal cooked; a Ctrl-C during TAB's query shows `^C` with no new prompt (bash 4.3 to 5.2): press Ctrl-C again, not Enter.
1497
1511
 
1498
1512
  ## Upgrading to 6.42 from 6.41
1499
1513
 
@@ -1510,7 +1524,7 @@ With zsh before 5.8 (zsh 5.5 is EL8's), run `mssh --completion install` again: t
1510
1524
  - Known limits ([limitations](docs/limitations.md#found-in-642s-review)):
1511
1525
  - ble.sh: in a quoted word, the second try finds nothing after a directory (`mssh h cat "sub/zzmp<TAB>`) or in a word holding a `$` expansion, a leading `~` or a quote of its own; type the start of the name ([limitations](docs/limitations.md#blesh-in-a-quoted-word-the-second-try-finds-nothing-after-a-directory-or-an-expansion)).
1512
1526
  - zsh before 5.8 with zsh-autosuggestions in its asynchronous mode (its default): a Ctrl-C while typing an mssh line now and then still keeps the line, as the plugin's own processes hold the terminal for a moment; press Ctrl-C again ([limitations](docs/limitations.md#zsh-before-58-with-zsh-autosuggestions-async-mode-a-ctrl-c-now-and-then-keeps-the-line)).
1513
- - bash: in a window of microseconds at the end of the picker's start, the picker or the editor can still come up with nothing reading its answer; your choice is then not applied, so press Enter or Esc and try again ([limitations](docs/limitations.md#bash-the-picker-or-the-editor-can-come-up-with-nothing-reading-its-answer)).
1527
+ - bash: in a window of microseconds at the end of the picker's start, the picker or the editor can still come up with nothing reading its answer; your choice is then not applied, so press Enter or Esc and try again (fixed in 6.49).
1514
1528
 
1515
1529
  ## Upgrading to 6.41 from 6.40
1516
1530
 
@@ -1521,7 +1535,7 @@ Run `mssh --completion install` again (bash, ble.sh, zsh and fish) to get the ne
1521
1535
  - Fix (bash, ble.sh, zsh, fish): a local file name holding whitespace is no longer offered for a remote command typed as words: `mssh h cat my\ file` made mssh run `my file` as a command of its own. Whitespace is what mssh splits words on, a no-break space too. Type such a command in quotes. Where nothing else is left, TAB offers nothing, not the local file names; a command's completion that answers with nothing (git's and grub's empty word) gets nothing under ble.sh too, as under readline.
1522
1536
  - Fix (bash, ble.sh, fish; zsh did so already): in a remote command typed in quotes, which mssh hands on whole, a local file name goes in quoted for the remote shell inside your quote: `mssh h 'cat a<TAB>` gives `'cat a\&b'` and `mssh h "cat a<TAB>` gives `"cat a\\&b"`, so the remote shell runs `cat` on `a&b` (6.40 gave `'cat a&b'`, and the remote shell ran `b`); a name holding whitespace goes in too (`'cat my\ file'`). In `$'...'` a name goes in with its backslashes and quotes escaped for it. The command typed before the word stays as typed, and so does a `$PWD/` or `~/` at the start of the word (`mssh h "ls $PWD/zzd<TAB>` gives `"ls $PWD/zzdir"`); a directory typed in the word is written as the remote shell's word (`mssh h "cat a&b/zz<TAB>` gives `"cat a\\&b/zzfile"`), and a word holding the remote shell's quoting completes (`mssh h "cat zz\\&a<TAB>`, as TAB itself writes it), with bash-completion loaded too; where the command's own completion offers nothing, the local file names come, as for a command typed as words. The command's first word goes in the same way (`mssh h "./my<TAB>` gives `"./my\\ script"`; 6.40 and the earlier 6.41 rounds wrote it as for a command typed as words); in a later part of the command (after a `;`) it comes from any local file, not only programs, and under ble.sh a first word naming a directory whose name changes for the remote shell gets no `/` (`mssh h "./zzd<TAB>` gives `"./zzd\\&x" `).
1523
1537
  - With ble.sh on bash before 4.3, the names inside a directory whose name needs quoting for the remote shell (`mssh h cat a\\\&dir/<TAB>`) are not offered: ble.sh there quoted the typed part again ([limitations](docs/limitations.md#blesh-before-bash-43-names-inside-a-directory-that-changes-are-left-out)). ble.sh's own file names, quoted for this shell alone, are no longer offered for a remote command's word: `mssh h rm sub/zzb<TAB>` put in `sub/zzb{a,b}`, which this shell expanded to two names.
1524
- - In zsh, a name typed with this shell's quoting alone (`mssh h cat a\&<TAB>`, which mssh would pass on as `a&`) no longer completes, nor one inside a directory typed bare in a quoted command (`mssh h "cat a&b/zz<TAB>`); bash replaces such a directory with the remote shell's word ([limitations](docs/limitations.md#zsh-a-directory-the-remote-shell-would-read-otherwise-gets-no-names)).
1538
+ - In zsh, a name typed with this shell's quoting alone (`mssh h cat a\&<TAB>`, which mssh would pass on as `a&`) no longer completes, nor one inside a directory typed bare in a quoted command (`mssh h "cat a&b/zz<TAB>`); bash replaces such a directory with the remote shell's word ([limitations](docs/limitations.md#zsh-and-blesh-a-directory-the-remote-shell-would-read-otherwise-gets-no-names)).
1525
1539
  - Fix (ble.sh): a word that is only an unset variable (`mssh h rm $ZZNONE<TAB>`) gets nothing; ble.sh's own default put in the names the empty value matches, `rm \*` in an empty directory, so every host ran `rm *` (6.40 did the same).
1526
1540
  - Fix (bash, ble.sh, zsh, fish): in a quoted argument of a command typed as words (`mssh h cat "zz<TAB>`), which mssh joins with the command's other words, the names come from the command's own completion, written for your quote and quoted for the remote shell, a word holding whitespace is left out, and history offers no whole command there: `"zz\\ a"` made mssh run `cat` and `zz\ a` as commands of their own, and `mssh h sudo 'sys<TAB>` gave `sudo 'systemctl restart nginx'`.
1527
1541
  - Fix (ble.sh with bash-completion 2.12 or later): the names for the command after `sudo`, `nohup` or `time` complete as for the command itself (`mssh h sudo cat zza<TAB>` gave `zzamp\`, and `mssh h "sudo cat zza<TAB>` put `"zzamp&b"` in place of the whole command): ble.sh's bash-completion integration took them for its own word.
@@ -549,7 +549,9 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
549
549
 
550
550
  > The plain-bash editor binds the space key, so every space typed in bash runs a tiny shell function; Ctrl-R becomes a key macro (the binding it replaced is called for other lines). Uninstall restores both in new shells. Such a function also fires bash's DEBUG trap, which some tools take for the start of a command: a command timer kept with the DEBUG trap (as some prompts keep theirs) counts from the first space typed instead of from Enter, and the preexec hooks of [bash-preexec](https://github.com/rcaloras/bash-preexec) (used by atuin and iTerm2's shell integration) may run at that space, before the line is complete.
551
551
 
552
- > On bash 4.3 to 5.2, if a Ctrl-C after TAB shows `^C` with no new prompt, press Ctrl-C again, not Enter: Enter runs the line without its first letter, so `mssh h rm x` runs `ssh h rm x`; a second Ctrl-C gives a clean prompt ([limitations](docs/limitations.md#ctrl-c-during-tabs-query-loses-the-first-letter-bash-43-to-52)).
552
+ > On bash 4.3 to 5.2, if a Ctrl-C while a remote command's own completion works (`mssh h git chec<TAB>`) shows `^C` with no new prompt, press Ctrl-C again, not Enter: Enter runs the line without its first letter, so `mssh h rm x` runs `ssh h rm x`; a second Ctrl-C gives a clean prompt. It is bash's own bug with any command's completion, fixed in bash 5.3 ([limitations](docs/limitations.md#bash-43-to-52-a-ctrl-c-while-a-remote-commands-own-completion-works)). A Ctrl-C during mssh's own query is no signal there: the line stays as shown.
553
+
554
+ > In plain bash, a Ctrl-C pressed in the first moment after TAB, Ctrl-R or the space that opens the line editor (a millisecond or two, longer on a loaded machine) can still now and then be lost, drop the line but leave Ctrl-C ringing instead of working until the next Enter, or leave a line that Enter runs without its first letter: press Ctrl-C again ([limitations](docs/limitations.md#bash-a-ctrl-c-in-the-first-moment-after-tab-ctrl-r-or-the-line-editors-space)).
553
555
 
554
556
  > In plain bash (without ble.sh), Ctrl-R and the line editor take their keys at the first prompt, through `PROMPT_COMMAND`. Where `PROMPT_COMMAND` is read-only (some audit setups on shared clusters make it so), they are left out without a message; TAB completion still works.
555
557
 
@@ -1388,6 +1390,18 @@ __DEBUG_MODE = False
1388
1390
 
1389
1391
  > `__DEBUG_MODE` is used to control whether to print host thread execution debug information to its stderr.
1390
1392
 
1393
+ ## Upgrading to 6.49 from 6.48
1394
+
1395
+ Run `mssh --completion install` again (bash): the fixes below are in the new glue. What you may notice:
1396
+
1397
+ - Fix (bash before 5.2): on a host setting `TMOUT`, Ctrl-R on an mssh line or the line editor (`MSSH_COMPLETE_EDITOR=1`) and walking away logs out again; it stayed logged in until the next Enter. The menu and the editor close after `TMOUT` seconds without a key, so bash before 5.1 can log out. bash counts `TMOUT` from the prompt, not from the last key, so there a line that takes longer than that from its prompt to Enter in the menu or the editor now logs out when they close, as any line typed that slowly does.
1398
+ - Fix (bash 4.3, 4.4, 5.0): after Ctrl-R and Esc on `mssh h rm x`, after a Ctrl-C in the menu, or after Esc in the editor, a Ctrl-C at the prompt showed nothing and Enter ran `ssh h rm x`. It drops the line again. A Ctrl-C right after Ctrl-R no longer leaves the terminal line by line (Ctrl-U not clearing the line); the first moment after the key is below.
1399
+ - Fix (bash 4.3 to 5.2): a Ctrl-C during TAB's own query (at most `MSSH_COMPLETE_TIMEOUT`, 0.3 s) showed `^C` with no new prompt, and Enter ran the line without its first letter. It is not taken now: the line stays as shown (a bell at most), Enter runs what is shown, and a second Ctrl-C drops it.
1400
+ - Change (bash): a Ctrl-C while the Ctrl-R menu or the line editor opens is their first key: the menu opens and closes and the line stays; the editor shows `mssh ^C` and a fresh prompt. With an engine slow to start, that waits until it is up, or for `MSSH_COMPLETE_START_TIMEOUT` (2 s) at most. The menu or the editor no longer comes up now and then with nothing reading its answer.
1401
+ - Known (bash 4.3 to 5.2): a Ctrl-C while a remote command's own completion works, after mssh's query (`mssh h git chec<TAB>`), still shows `^C` with no new prompt, and Enter runs the line without its first letter: press Ctrl-C again. That is bash's own bug with any command's completion, fixed in bash 5.3 ([limitations](docs/limitations.md#bash-43-to-52-a-ctrl-c-while-a-remote-commands-own-completion-works)). A Ctrl-C in the first moment after TAB, Ctrl-R or the editor's space (a millisecond or two) can still go wrong ([limitations](docs/limitations.md#bash-a-ctrl-c-in-the-first-moment-after-tab-ctrl-r-or-the-line-editors-space)).
1402
+ - The new glue needs the new engine for the line editor: beside an engine before 6.49, space is a plain space.
1403
+ - Known (zsh): the entries 6.48 deferred to 6.49 move to 6.50; zsh is as in 6.48 ([limitations](docs/limitations.md)).
1404
+
1391
1405
  ## Upgrading to 6.48 from 6.47
1392
1406
 
1393
1407
  Run `mssh --completion install` again (zsh and bash): the fixes below are in the new glue. What you may notice:
@@ -1467,7 +1481,7 @@ Run `mssh --completion install` again in bash (with or without ble.sh), zsh and
1467
1481
  - Fix (bash 4.3, 4.4, 5.0): a Ctrl-C up to about 0.06 s after Ctrl-R left the terminal line by line until the next Enter, so Ctrl-U no longer cleared the line. The glue now puts the terminal's mode back.
1468
1482
  - Fix (zsh): in a double-quoted word holding an expansion (`mssh h "rm $PWD/Outer<TAB>`), file names and mssh's history words now go in quoted for the double quote (`Outer\$Inner.class` reached the remote shell as `Outer.class`); `mssh -f "$PWD/zzp<TAB>` completes with the quote closed (6.42: `mssh -f /the/dir/zzp`); the filters for this shell's own functions and parameters apply to a command's name only, so a file here named `_comps`, or a word of a command's own completion such as `_git`, is offered.
1469
1483
  - Fix (bash): `M-*` and `M-?` after a directory in a quote no longer show or insert a hidden second word; a directory beside names left out (those holding whitespace) leaves the quote open as one alone; bash-completion's doubled directory (bash 4.2 and 4.4) no longer closes the quote. A directory completed by `scp`, `rsync` or any other command with a bash-completion completion also leaves the quote open. With `set -o posix` turned on after the glue loaded, TAB on bash before 5.1 completes remote file names (it turns posix mode off for the call, which bash before 5.1 needs for the glue's `<( )`, and back on after it, with `POSIXLY_CORRECT` as it was, exported or not). A Ctrl-C that cuts such a TAB short leaves posix mode off, and `POSIXLY_CORRECT` unset, in two cases: on bash 4.2, whenever it comes (the query or a remote command's own completion), and on bash 4.3, 4.4 and 5.0, when it comes while a remote command's own completion has a child process running (4 of 4 tries on 4.3.48, 4.4.20, 4.4.23 and 5.0.18; a Ctrl-C during the query left it on there in 12 of 12 tries each). The next TAB on an mssh line, or Ctrl-R on any line, puts it back with `POSIXLY_CORRECT` as it was; a TAB on another command, Enter and a new prompt do not. On bash 5.1 and later the glue does not turn it off. On bash 3.2 (macOS's `/bin/bash`) the glue registers nothing and prints nothing.
1470
- - Known limits ([limitations](docs/limitations.md#tmout-after-ctrl-r-or-in-the-line-editor-bash-before-52)): on a `TMOUT` host, Ctrl-R on an mssh line and walking away stays logged in until Enter (bash before 5.2), and so does the line editor (`MSSH_COMPLETE_EDITOR=1`, bash 4.4 to 5.1); a Ctrl-C after Ctrl-R can lose the line's first letter (bash 4.3, 4.4, 5.0), and in a small window (about 0.4% of tries) leaves the terminal cooked; a Ctrl-C during TAB's query shows `^C` with no new prompt (bash 4.3 to 5.2): press Ctrl-C again, not Enter.
1484
+ - Known limits (fixed in 6.49, but for the first moment after the key: see Upgrading to 6.49): on a `TMOUT` host, Ctrl-R on an mssh line and walking away stays logged in until Enter (bash before 5.2), and so does the line editor (`MSSH_COMPLETE_EDITOR=1`, bash 4.4 to 5.1); a Ctrl-C after Ctrl-R can lose the line's first letter (bash 4.3, 4.4, 5.0), and in a small window (about 0.4% of tries) leaves the terminal cooked; a Ctrl-C during TAB's query shows `^C` with no new prompt (bash 4.3 to 5.2): press Ctrl-C again, not Enter.
1471
1485
 
1472
1486
  ## Upgrading to 6.42 from 6.41
1473
1487
 
@@ -1484,7 +1498,7 @@ With zsh before 5.8 (zsh 5.5 is EL8's), run `mssh --completion install` again: t
1484
1498
  - Known limits ([limitations](docs/limitations.md#found-in-642s-review)):
1485
1499
  - ble.sh: in a quoted word, the second try finds nothing after a directory (`mssh h cat "sub/zzmp<TAB>`) or in a word holding a `$` expansion, a leading `~` or a quote of its own; type the start of the name ([limitations](docs/limitations.md#blesh-in-a-quoted-word-the-second-try-finds-nothing-after-a-directory-or-an-expansion)).
1486
1500
  - zsh before 5.8 with zsh-autosuggestions in its asynchronous mode (its default): a Ctrl-C while typing an mssh line now and then still keeps the line, as the plugin's own processes hold the terminal for a moment; press Ctrl-C again ([limitations](docs/limitations.md#zsh-before-58-with-zsh-autosuggestions-async-mode-a-ctrl-c-now-and-then-keeps-the-line)).
1487
- - bash: in a window of microseconds at the end of the picker's start, the picker or the editor can still come up with nothing reading its answer; your choice is then not applied, so press Enter or Esc and try again ([limitations](docs/limitations.md#bash-the-picker-or-the-editor-can-come-up-with-nothing-reading-its-answer)).
1501
+ - bash: in a window of microseconds at the end of the picker's start, the picker or the editor can still come up with nothing reading its answer; your choice is then not applied, so press Enter or Esc and try again (fixed in 6.49).
1488
1502
 
1489
1503
  ## Upgrading to 6.41 from 6.40
1490
1504
 
@@ -1495,7 +1509,7 @@ Run `mssh --completion install` again (bash, ble.sh, zsh and fish) to get the ne
1495
1509
  - Fix (bash, ble.sh, zsh, fish): a local file name holding whitespace is no longer offered for a remote command typed as words: `mssh h cat my\ file` made mssh run `my file` as a command of its own. Whitespace is what mssh splits words on, a no-break space too. Type such a command in quotes. Where nothing else is left, TAB offers nothing, not the local file names; a command's completion that answers with nothing (git's and grub's empty word) gets nothing under ble.sh too, as under readline.
1496
1510
  - Fix (bash, ble.sh, fish; zsh did so already): in a remote command typed in quotes, which mssh hands on whole, a local file name goes in quoted for the remote shell inside your quote: `mssh h 'cat a<TAB>` gives `'cat a\&b'` and `mssh h "cat a<TAB>` gives `"cat a\\&b"`, so the remote shell runs `cat` on `a&b` (6.40 gave `'cat a&b'`, and the remote shell ran `b`); a name holding whitespace goes in too (`'cat my\ file'`). In `$'...'` a name goes in with its backslashes and quotes escaped for it. The command typed before the word stays as typed, and so does a `$PWD/` or `~/` at the start of the word (`mssh h "ls $PWD/zzd<TAB>` gives `"ls $PWD/zzdir"`); a directory typed in the word is written as the remote shell's word (`mssh h "cat a&b/zz<TAB>` gives `"cat a\\&b/zzfile"`), and a word holding the remote shell's quoting completes (`mssh h "cat zz\\&a<TAB>`, as TAB itself writes it), with bash-completion loaded too; where the command's own completion offers nothing, the local file names come, as for a command typed as words. The command's first word goes in the same way (`mssh h "./my<TAB>` gives `"./my\\ script"`; 6.40 and the earlier 6.41 rounds wrote it as for a command typed as words); in a later part of the command (after a `;`) it comes from any local file, not only programs, and under ble.sh a first word naming a directory whose name changes for the remote shell gets no `/` (`mssh h "./zzd<TAB>` gives `"./zzd\\&x" `).
1497
1511
  - With ble.sh on bash before 4.3, the names inside a directory whose name needs quoting for the remote shell (`mssh h cat a\\\&dir/<TAB>`) are not offered: ble.sh there quoted the typed part again ([limitations](docs/limitations.md#blesh-before-bash-43-names-inside-a-directory-that-changes-are-left-out)). ble.sh's own file names, quoted for this shell alone, are no longer offered for a remote command's word: `mssh h rm sub/zzb<TAB>` put in `sub/zzb{a,b}`, which this shell expanded to two names.
1498
- - In zsh, a name typed with this shell's quoting alone (`mssh h cat a\&<TAB>`, which mssh would pass on as `a&`) no longer completes, nor one inside a directory typed bare in a quoted command (`mssh h "cat a&b/zz<TAB>`); bash replaces such a directory with the remote shell's word ([limitations](docs/limitations.md#zsh-a-directory-the-remote-shell-would-read-otherwise-gets-no-names)).
1512
+ - In zsh, a name typed with this shell's quoting alone (`mssh h cat a\&<TAB>`, which mssh would pass on as `a&`) no longer completes, nor one inside a directory typed bare in a quoted command (`mssh h "cat a&b/zz<TAB>`); bash replaces such a directory with the remote shell's word ([limitations](docs/limitations.md#zsh-and-blesh-a-directory-the-remote-shell-would-read-otherwise-gets-no-names)).
1499
1513
  - Fix (ble.sh): a word that is only an unset variable (`mssh h rm $ZZNONE<TAB>`) gets nothing; ble.sh's own default put in the names the empty value matches, `rm \*` in an empty directory, so every host ran `rm *` (6.40 did the same).
1500
1514
  - Fix (bash, ble.sh, zsh, fish): in a quoted argument of a command typed as words (`mssh h cat "zz<TAB>`), which mssh joins with the command's other words, the names come from the command's own completion, written for your quote and quoted for the remote shell, a word holding whitespace is left out, and history offers no whole command there: `"zz\\ a"` made mssh run `cat` and `zz\ a` as commands of their own, and `mssh h sudo 'sys<TAB>` gave `sudo 'systemctl restart nginx'`.
1501
1515
  - Fix (ble.sh with bash-completion 2.12 or later): the names for the command after `sudo`, `nohup` or `time` complete as for the command itself (`mssh h sudo cat zza<TAB>` gave `zzamp\`, and `mssh h "sudo cat zza<TAB>` put `"zzamp&b"` in place of the whole command): ble.sh's bash-completion integration took them for its own word.