multiSSH3 6.41__tar.gz → 6.43__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.
- {multissh3-6.41/multiSSH3.egg-info → multissh3-6.43}/PKG-INFO +46 -8
- {multissh3-6.41 → multissh3-6.43}/README.md +45 -7
- {multissh3-6.41 → multissh3-6.43}/mssh_complete.py +478 -132
- {multissh3-6.41 → multissh3-6.43/multiSSH3.egg-info}/PKG-INFO +46 -8
- {multissh3-6.41 → multissh3-6.43}/multiSSH3.egg-info/SOURCES.txt +1 -0
- {multissh3-6.41 → multissh3-6.43}/multiSSH3.py +2 -2
- {multissh3-6.41 → multissh3-6.43}/tests/complete_shell_harness.py +17 -3
- multissh3-6.43/tests/shells/Dockerfile.bash5.0 +8 -0
- {multissh3-6.41 → multissh3-6.43}/tests/shells/Dockerfile.bash5.1 +1 -1
- {multissh3-6.41 → multissh3-6.43}/tests/shells/Dockerfile.bash5.3 +1 -1
- {multissh3-6.41 → multissh3-6.43}/tests/shells/Dockerfile.centos7 +6 -4
- {multissh3-6.41 → multissh3-6.43}/tests/shells/Dockerfile.current +2 -2
- {multissh3-6.41 → multissh3-6.43}/tests/shells/Dockerfile.el9 +3 -2
- {multissh3-6.41 → multissh3-6.43}/tests/shells/Dockerfile.legacy +3 -2
- {multissh3-6.41 → multissh3-6.43}/tests/shells/Dockerfile.modern +1 -1
- multissh3-6.43/tests/shells/run_matrix.sh +100 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_blesh.py +7 -4
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_context.py +2 -1
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_engine.py +8 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_index.py +4 -6
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_keys.py +461 -31
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_picker.py +20 -7
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_shells.py +784 -20
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_zsh_options.py +1 -6
- multissh3-6.41/tests/shells/run_matrix.sh +0 -42
- {multissh3-6.41 → multissh3-6.43}/LICENSE +0 -0
- {multissh3-6.41 → multissh3-6.43}/MANIFEST.in +0 -0
- {multissh3-6.41 → multissh3-6.43}/multiSSH3.egg-info/dependency_links.txt +0 -0
- {multissh3-6.41 → multissh3-6.43}/multiSSH3.egg-info/entry_points.txt +0 -0
- {multissh3-6.41 → multissh3-6.43}/multiSSH3.egg-info/top_level.txt +0 -0
- {multissh3-6.41 → multissh3-6.43}/pytest.ini +0 -0
- {multissh3-6.41 → multissh3-6.43}/setup.cfg +0 -0
- {multissh3-6.41 → multissh3-6.43}/setup.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/bench_complete.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/conftest.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/data/run_command_golden.json +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/replay.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_cli_branches.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_cli_option_words.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_cli_processing.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_closed_output.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_color_helpers.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_command_terminal.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_compact_hostnames.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_cli.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_diagnose.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_editor.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_eval.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_hosts.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_hoststate.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_lex.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_mssh_helpers.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_password_spellings.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_probe.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_start.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_store.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_suggest.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_terminal.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_complete_untrusted.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_config_cli.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_config_validate.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_config_values.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_control_master_config.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_copy_id.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_curses_branches.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_curses_event_loop.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_curses_tui.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_curses_wide_chars.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_expand_hostnames.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_file_trust.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_harness_smoke.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_helpers_extra.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_history_replay.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_host.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_host_validity.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_hosts_file.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_identities_only.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_ipmi_lockout_wait.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_ipmi_logins.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_key_path_home.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_login_drop_retry.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_main_lifecycle.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_narrow_terminal.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_no_hosts.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_option_no_effect.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_options_after_command.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_output_merge.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_output_robustness.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_packaging.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_password_handling.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_passwords_out_of_ps.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_run_command.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_run_command_branches.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_run_command_characterization.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_run_command_exit.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_run_on_hosts.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_run_on_hosts_modes.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_runtime_branch_matrix.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_runtime_dir.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_shared_lines.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_smoke_optional.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_ssh_error_text.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_ssh_timeouts.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_sshpass_exit.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_start_run_on_hosts.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_stopped_commands.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_stream_reader.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_streamed_output.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_tui_ssh_notices.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_unavailable_hosts.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_underscore_settings.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_waiting.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/test_wide_wrap.py +0 -0
- {multissh3-6.41 → multissh3-6.43}/tests/vt_grid.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: multiSSH3
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.43
|
|
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
|
|
@@ -558,25 +558,36 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
|
|
|
558
558
|
| --- | --- |
|
|
559
559
|
| `MSSH_COMPLETE_TIMEOUT` | Seconds the shell waits for an answer (default 0.3) |
|
|
560
560
|
| `MSSH_COMPLETE_START_TIMEOUT` | seconds the shell waits for the Ctrl-R menu (and bash's line editor) to open (default 2); past that, Ctrl-R does what it did before and space is a space. Ctrl-C while it opens keeps the line. A menu that opens later leaves the terminal alone |
|
|
561
|
-
| `MSSH_COMPLETE_GHOST_TIMEOUT` | ble.sh only: milliseconds a grey suggestion may take (default 300) |
|
|
561
|
+
| `MSSH_COMPLETE_GHOST_TIMEOUT` | ble.sh only: milliseconds a grey suggestion or the warnings query may take (default 300; a value that is not a whole number of milliseconds counts as the default); a warnings query that misses it is asked again 0.3, 0.7 and 2 seconds after each miss (when every try runs to the limit: about 0.6, 1.6 and 3.9 seconds after the first ask), then not again until a finished word changes |
|
|
562
562
|
| `MSSH_COMPLETE_SHELL_HISTORY` | Lines of shell history sent along (default 1000) |
|
|
563
563
|
| `MSSH_COMPLETE_EDITOR` | `1` turns on the plain-bash mssh line editor (`install bash editor` sets it) |
|
|
564
564
|
| `MSSH_COMPLETE_PING_TTL` | Seconds a host that answered ping is expected to keep answering (default: mssh's unreachable host expiry, 600) |
|
|
565
565
|
| `MSSH_COMPLETE_DEBUG` | `1` logs errors to `complete.log` in the cache directory |
|
|
566
566
|
|
|
567
|
-
> Tested with bash 4.2 to 5.3, zsh 5.
|
|
567
|
+
> Tested with bash 4.2 to 5.3, zsh 5.0.2 to 5.9 (with `compinit` loaded; zsh-autosuggestions 0.7.1; zsh-syntax-highlighting 0.7.1 and 0.8.0), fish 3.3 to 4.0 and the 2026-09-08 ble.sh nightly. On fish 2, install succeeds but the glue registers nothing ([limitations](docs/limitations.md#install-on-fish-2-succeeds-and-does-nothing)). Since 6.28 mssh records hosts in its history as typed; older history lines hold them expanded.
|
|
568
568
|
|
|
569
569
|
> After upgrading mssh, run `mssh --completion install` again to get the new shell glue. Glue from an older mssh keeps working, without the newer features; glue from before 6.37 (bash) or 6.38 (zsh, fish) does not tell the completer your locale, so the Ctrl-R menu and the warnings are drawn in ASCII until you do ([limitations](docs/limitations.md#older-glue-files-draw-the-ctrl-r-menu-and-warnings-in-ascii)).
|
|
570
570
|
|
|
571
571
|
> 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.
|
|
572
572
|
|
|
573
|
+
> 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)).
|
|
574
|
+
|
|
573
575
|
> 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.
|
|
574
576
|
|
|
575
577
|
> The bash glue runs with `nocasematch` off and gives you your setting back when it returns; with `shopt -s nocasematch` on, a Ctrl-C during a TAB can leave it off ([limitations](docs/limitations.md#with-nocasematch-on-in-bash-a-ctrl-c-during-a-tab-can-leave-it-off)). Under `bind TAB:menu-complete`, and picked from ble.sh's menu, mssh's words beside the words of a command like git (which asks for no space, `--format=` beside `--oneline `) go in without a space ([limitations](docs/limitations.md#under-menu-complete-or-bleshs-menu-msshs-words-beside-a-nospace-commands-mixed-words-get-no-space)). Where python-argcomplete's global completer (`complete -D`) is set, a remote command with no completion file completes local file names, as with bash-completion alone: mssh never runs a local program named like the remote command ([limitations](docs/limitations.md#bash-a-remote-command-with-no-completion-file-completes-local-file-names-where-python-argcompletes-global-completer-is-set)).
|
|
576
578
|
|
|
577
579
|
> With ble.sh, one of mssh's remote words (from its history) that names a directory on this machine goes in with `/` and no space ([limitations](docs/limitations.md#blesh-a-remote-word-of-msshs-that-names-a-local-directory-gets-a--and-no-space)), and a remote `~/...` path from mssh's history goes in with a bare `~`, which this shell expands to your local home ([limitations](docs/limitations.md#blesh-a-remote--path-from-msshs-history-goes-in-with-a-bare-)); plain bash keeps the space and inserts `\~`.
|
|
578
580
|
|
|
579
|
-
> With ble.sh, a word that ble.sh splits at an `=` or `:` after a quote, a backslash or an expansion (`"a"=b`, `$V:x`) is read as in 6.39; a `~` after such a split comes back as this machine's home ([limitations](docs/limitations.md#blesh-a-word-split-at-an--or--after-a-quote-backslash-or-expansion-is-read-as-in-639)). On bash 4.3 and 4.4, a remote command's `-o noquote` is not seen, so the local file names completed for it are quoted ([limitations](docs/limitations.md#bash-43-and-44-a-remote-commands--o-noquote-is-not-seen)).
|
|
581
|
+
> With ble.sh, a word that ble.sh splits at an `=` or `:` after a quote, a backslash or an expansion (`"a"=b`, `$V:x`) is read as in 6.39; a `~` after such a split comes back as this machine's home ([limitations](docs/limitations.md#blesh-a-word-split-at-an--or--after-a-quote-backslash-or-expansion-is-read-as-in-639)). On bash 4.3 and 4.4, a remote command's `-o noquote` is not seen, so the local file names completed for it are quoted ([limitations](docs/limitations.md#bash-43-and-44-a-remote-commands--o-noquote-is-not-seen)).
|
|
582
|
+
|
|
583
|
+
> With ble.sh, in a quoted word, ble.sh's second try (matching the typed letters in any order) 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; typing the start of the name still completes ([limitations](docs/limitations.md#blesh-in-a-quoted-word-the-second-try-finds-nothing-after-a-directory-or-an-expansion)).
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
> With zsh before 5.8 and zsh-autosuggestions in its default asynchronous mode, a Ctrl-C while typing an mssh line now and then 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)).
|
|
587
|
+
|
|
588
|
+
> In zsh, a double-quoted word holding an expansion (`mssh h "ls $PWD/zzp<TAB>`) is still expanded, as before, where your completers include `_expand` ([limitations](docs/limitations.md#zsh-a-double-quoted-expansion-is-still-expanded-where-the-completer-is-_expand)). It also applies only on a line that starts with an mssh name, not after `FOO=1`, `sudo`, `time`, `;` or `&&`, or through an alias (to be fixed in 6.44, [limitations](docs/limitations.md#zsh-the-quote-rewrite-on-a-line-that-does-not-start-with-mssh)), and going on into a directory completed in such a word gives no names (6.44, [limitations](docs/limitations.md#zsh-going-on-into-a-directory-completed-in-a-double-quote-with-an-expansion-gives-no-names)). In zsh, `mssh h "cat $HOM<TAB>` gives `"cat $HOME ` with the quote still open ([limitations](docs/limitations.md#zsh-a-variable-name-typed-inside-a-double-quoted-command-is-completed-with-a-space-and-the-quote-left-open)). In bash with bash-completion, a `~name` word in a quoted command (`mssh h "cat ~bi<TAB>`) closes the quote ([limitations](docs/limitations.md#bash-completion-a-name-word-closes-the-quote)); and when TAB's query misses its time limit the fallback to file names of this shell quotes them for this shell alone, not for the remote one (6.44, [limitations](docs/limitations.md#tab-past-its-limit-inserts-a-name-quoted-for-this-shell-only)); and on bash before 5.1 a glue sourced while bash is in posix mode gives bash's default completion ([limitations](docs/limitations.md#bash-the-glue-sourced-while-the-shell-is-already-in-posix-mode-gives-bashs-default-completion)). With ble.sh, `mssh h "cat $HOM<TAB>` gives `"cat $HOME ` with the quote still open ([limitations](docs/limitations.md#blesh-a-variable-name-typed-inside-a-double-quoted-command-is-completed-with-a-space-and-the-quote-left-open)). In bash, `mssh -f "$PWD/zzs<TAB>` (also `--file "$PWD/zzs` and `--file="$PWD/zzs`) gives `"\$PWD/zzs.txt"`, so mssh receives the text `$PWD/zzs.txt` (6.44, [limitations](docs/limitations.md#bash-a-file-name-typed-inside-double-quotes-with-an-expansion-reaches-mssh-unexpanded)); in zsh, `mssh --file=zzs<TAB>` offers nothing (6.44, [limitations](docs/limitations.md#zsh---file-followed-by-a-file-name-offers-nothing)); and with zsh-autosuggestions in its default asynchronous mode, keys arriving together (`x` then Right, in one read) can still take the grey text of the older line, as the plugin alone does (6.44, [limitations](docs/limitations.md#zsh-autosuggestions-async-its-default-keys-arriving-together-take-grey-text-from-the-older-line)).
|
|
589
|
+
|
|
590
|
+
> On zsh before 5.3, mssh draws no grey text of its own and shows no warnings, as the zle hooks they need (`add-zle-hook-widget`) came in zsh 5.3; with zsh-autosuggestions loaded, its grey text still comes from mssh. TAB completion works.
|
|
580
591
|
|
|
581
592
|
## Options
|
|
582
593
|
|
|
@@ -984,7 +995,7 @@ Option names count in full only: `--user` is not `--username` and `-c` is not `-
|
|
|
984
995
|
|
|
985
996
|
Putting the command after `--` is no substitute for quotes: every word after the hosts is a command of its own, so `mssh web1 -- bash -c 'echo hi'` runs `bash`, `-c` and `echo hi` one after another (when each word is a single word, as in `mssh web1 -- ls -la`, mssh asks whether to join them).
|
|
986
997
|
|
|
987
|
-
Below is a sample help message output from multiSSH3 6.
|
|
998
|
+
Below is a sample help message output from multiSSH3 6.43 @ 2026-11-05 (no config file, 120 columns; the lines after the options list the programs found on that machine)
|
|
988
999
|
|
|
989
1000
|
```bash
|
|
990
1001
|
$ mssh -h
|
|
@@ -1398,6 +1409,36 @@ __DEBUG_MODE = False
|
|
|
1398
1409
|
|
|
1399
1410
|
> `__DEBUG_MODE` is used to control whether to print host thread execution debug information to its stderr.
|
|
1400
1411
|
|
|
1412
|
+
## Upgrading to 6.43 from 6.42
|
|
1413
|
+
|
|
1414
|
+
Run `mssh --completion install` again in bash (with or without ble.sh), zsh and fish: the fixes below are in the new glue. What you may notice:
|
|
1415
|
+
|
|
1416
|
+
- Fix (zsh, fish): this shell's internal functions are no longer offered as remote command names, as in bash since 6.42. In zsh: names starting with `_` (zsh's completion functions, the glue's own, a plugin's), and `compdef`, `compinit`, `add-zsh-hook`, `is-at-least` and the like, and parameters starting with `_`. In fish: names starting with `_` or `fish_` (`mssh h fish_pro<TAB>` gave `fish_prompt`, `mssh h __mssh<TAB>` the glue's own), and fish's own that only make sense in fish (`funcsave`, `prompt_pwd`, `psub` ...). A file here or a command on PATH with the name is still offered. Your other functions and aliases (`zzlocalfn`, `module`) still are, and so are fish's that a remote shell has too (`ls`, `pushd`).
|
|
1417
|
+
- Fix (bash, ble.sh): a directory completed in a quote leaves the quote open and adds no space, so you can go on into it: `mssh h "ls zzd<TAB>` gives `"ls zzdir/` (it gave `"ls zzdir" `), `mssh h "cat ~bi<TAB>` gives `"cat ~bin/` (with bash-completion loaded, every command it has a completion for also gives `~bin`, and the quote still closes: `"cat ~bin" `; a command with none stays open, except on bash 4.2, where it closes too), and `mssh h ls "zzd<TAB>` gives `ls "zzd\\&x/`. Under readline the terminal's bell rings for it, as for any TAB with more than one name (it takes a second, hidden word to keep readline from closing the quote), and with `show-all-if-ambiguous` on the two are listed (`ls zzdir/` and `ls zzdir/.`). With TAB bound to `menu-complete` the quote still closes, as before.
|
|
1418
|
+
- Fix (zsh): a double-quoted word holding an expansion stays as typed and completes: `mssh h "ls $PWD/zzd<TAB>` gives `"ls $PWD/zzdir/`. 6.42 rewrote the line to `mssh h ls\ /the/directory/zzd` and completed nothing, and `mssh h "echo $USER; cat zzp<TAB>` lost its quote and its meaning; in a quoted argument (`mssh h ls "$PWD/zzp<TAB>`) the quote went too. On an mssh line holding a double quote and a `$` or a backtick, TAB now completes where zsh's `expand-or-complete` would expand; on other lines nothing changes. The glue goes around that widget, so keys and your own widgets calling it are covered; `expand-or-complete-prefix` and `menu-expand-or-complete`, if you bind TAB to one of them, still expand. A backtick is kept but not read, so such a word completes nothing; with the cursor inside such a word (not at its end) nothing is offered.
|
|
1419
|
+
- Fix (bash before 5.2): on a host setting `TMOUT`, a TAB on an mssh line and walking away stayed logged in, and so did a login left at its first prompt, with the glue loaded: a read in the shell, timed or on a pipe, cancels the alarm of the line. TAB's timed read now runs in a subshell and the others are gone, so the auto-logout comes on time. A TAB costs about 1 ms more for that subshell (median of 40 TABs with the real engine, about 21 ms: 20.8 and 21.4 ms in 6.42, 21.2 and 22.0 ms now on bash 5.2; 26.2 and 27.3 ms on bash 4.2). It also ends TAB's rare "Alarm clock" on bash 4.2 and 4.3, which ended the shell (0 of 96 test shells in tries timed at that moment on purpose, 11 of 96 before).
|
|
1420
|
+
- 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.
|
|
1421
|
+
- 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.
|
|
1422
|
+
- 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.
|
|
1423
|
+
- 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.
|
|
1424
|
+
|
|
1425
|
+
## Upgrading to 6.42 from 6.41
|
|
1426
|
+
|
|
1427
|
+
With zsh before 5.8 (zsh 5.5 is EL8's), run `mssh --completion install` again: the Ctrl-C fix below is in the new glue. Do the same in bash, with or without ble.sh, for the Ctrl-R, ble.sh and function-name fixes (fish's glue did not change; the quoted-argument fix needs no install). What you may notice:
|
|
1428
|
+
|
|
1429
|
+
- Fix (bash): a Ctrl-R pick or a line editor edit was now and then dropped without a word, leaving the line as it was (about 1 in 50 to 100 on bash 5.2 in tests, less on other versions): the glue waits for the picker's "ready" in reads of 0.1 s, and when it arrived as one ran out, bash 5 kept its first byte where the next read wrote over it, and bash 4.2 to 4.4 dropped it. Both now count.
|
|
1430
|
+
- Fix (bash 4.2 and 4.3, e.g. CentOS 7's): the shell could end with "Alarm clock" on Ctrl-R, about once in 1000 in tests timed at that moment on purpose, when the picker's answer came as a 0.1 s wait ran out (a bash bug fixed in 4.4). The glue now ignores SIGALRM during that wait and puts your own trap for it back after.
|
|
1431
|
+
- Fix (zsh 5.0.2, CentOS 7's): the first TAB in a remote command reset your own `setopt` options for the rest of the session (`emulate -L zsh -o ...` forgets `-L` there), so `glob_dots` and the like stopped working. They now stay. mssh's own grey text and warnings still need zsh 5.3; TAB completion works on 5.0.2.
|
|
1432
|
+
|
|
1433
|
+
- Fix (zsh before 5.8): a Ctrl-C during a completion query (a TAB, the grey text, the warnings) reaches the shell and drops the line. 6.41 and earlier now and then left the terminal with the query, so the Ctrl-C went to the query and the line stayed. The queries no longer take the terminal from the shell; zsh 5.8 and later were not affected. zsh-autosuggestions' own asynchronous fetch still takes it now and then (below).
|
|
1434
|
+
- Fix (ble.sh): when a word in a quote gets nothing, ble.sh's second try, which matches the typed letters in any order, now completes it by the quote's rules: `mssh h cat "zzmp<TAB>` with a file `zzamp&b` gives `cat "zzamp\\&b"`, `mssh h "cat zzmp<TAB>` gives `"cat zzamp\\&b"`, and `mssh -f "zzmp<TAB>` gives `-f "zzamp&b"`. 6.41 offered nothing there. A name holding whitespace stays out of a quoted argument, as on the first try.
|
|
1435
|
+
- Fix (bash, ble.sh): this shell's internal functions are no longer offered as remote command names: names starting with `_` (bash-completion's `_comp_*` and `_filedir`, the glue's own), bash-completion's `quote`, `dequote` and `quote_readline`, and ble.sh's `ble`, `ble-*`, `ble/*`, `bleopt` and `blehook`, unless a file here or a command on PATH has the name. Under ble.sh `mssh h bed<TAB>` could put in a ble.sh function, and `mssh h sudo "amb<TAB>` bash-completion's `_comp__reassemble_words`, which every host would then try to run. Your other functions and aliases (`module`, `ml`, `nvm`) are still offered, as in 6.41.
|
|
1436
|
+
- Fix (bash, ble.sh, zsh, fish): in a quoted argument after another quoted one, `mssh h grep 'a' "zz<TAB>` could put in a local name holding a space (`"zz\\ a"`), which mssh would run as a command of its own. mssh joins an argument without whitespace with the command's other words, quoted or not, so such names are now left out there too. After an argument holding whitespace (`'a b'`, `zz\ a`, `''`), which mssh runs as a command of its own, the word being typed completes as a new command name.
|
|
1437
|
+
- Known limits ([limitations](docs/limitations.md#found-in-642s-review)):
|
|
1438
|
+
- 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)).
|
|
1439
|
+
- 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)).
|
|
1440
|
+
- 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)).
|
|
1441
|
+
|
|
1401
1442
|
## Upgrading to 6.41 from 6.40
|
|
1402
1443
|
|
|
1403
1444
|
Run `mssh --completion install` again (bash, ble.sh, zsh and fish) to get the new glue. What you may notice:
|
|
@@ -1421,10 +1462,7 @@ Run `mssh --completion install` again (bash, ble.sh, zsh and fish) to get the ne
|
|
|
1421
1462
|
- readline and ble.sh: `mssh h ls ${VAR:-x}/zz<TAB>` writes a broken word (`${VAR:-x\\\}/...`), as 6.40 did ([limitations](docs/limitations.md#bash-a-default-value-expansion-in-a-remote-word-is-written-broken)).
|
|
1422
1463
|
- In a quoted command, a word holding a `;`, `|` or `(` quoted for the remote shell (`mssh h "ls zz\\;<TAB>`) gets nothing more ([limitations](docs/limitations.md#a-name-holding---or--in-a-quoted-command-cannot-be-continued)).
|
|
1423
1464
|
- Whitespace in names is read as UTF-8: in a Latin-1 or GBK locale (untested) a name may be offered or left out wrongly ([limitations](docs/limitations.md#whitespace-in-names-is-read-as-utf-8)).
|
|
1424
|
-
- ble.sh: in a quoted word, letters typed out of order find nothing; only names that begin with what was typed are offered ([limitations](docs/limitations.md#blesh-letters-typed-out-of-order-in-a-quoted-word-find-nothing)).
|
|
1425
|
-
- bash: a directory completed in a quoted command closes the quote (`mssh h "ls zzd<TAB>` gives `"ls zzdir" `), as in 6.40, and so does one in a quoted argument whose name changes for the remote shell (`ls "zzd\\&x" `); to be fixed after 6.41 ([limitations](docs/limitations.md#a-directory-completed-in-a-quoted-command-or-argument-closes-the-quote)).
|
|
1426
1465
|
- When PATH finds an mssh-complete older than the glue (a system install beside a newer venv, `sudo -i`), quoted arguments complete as in 6.40; install the same version ([limitations](docs/limitations.md#with-an-engine-older-than-the-glue-quoted-arguments-behave-as-in-640)).
|
|
1427
|
-
- zsh: `mssh h "ls $PWD/zzd<TAB>` rewrites the line to `ls\ /the/directory/zzd` and completes nothing, as in 6.40; to be fixed after 6.41 ([limitations](docs/limitations.md#zsh-a-variable-in-a-double-quoted-command-is-expanded-and-nothing-completes)).
|
|
1428
1466
|
|
|
1429
1467
|
## Upgrading to 6.40 from 6.39
|
|
1430
1468
|
|
|
@@ -532,25 +532,36 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
|
|
|
532
532
|
| --- | --- |
|
|
533
533
|
| `MSSH_COMPLETE_TIMEOUT` | Seconds the shell waits for an answer (default 0.3) |
|
|
534
534
|
| `MSSH_COMPLETE_START_TIMEOUT` | seconds the shell waits for the Ctrl-R menu (and bash's line editor) to open (default 2); past that, Ctrl-R does what it did before and space is a space. Ctrl-C while it opens keeps the line. A menu that opens later leaves the terminal alone |
|
|
535
|
-
| `MSSH_COMPLETE_GHOST_TIMEOUT` | ble.sh only: milliseconds a grey suggestion may take (default 300) |
|
|
535
|
+
| `MSSH_COMPLETE_GHOST_TIMEOUT` | ble.sh only: milliseconds a grey suggestion or the warnings query may take (default 300; a value that is not a whole number of milliseconds counts as the default); a warnings query that misses it is asked again 0.3, 0.7 and 2 seconds after each miss (when every try runs to the limit: about 0.6, 1.6 and 3.9 seconds after the first ask), then not again until a finished word changes |
|
|
536
536
|
| `MSSH_COMPLETE_SHELL_HISTORY` | Lines of shell history sent along (default 1000) |
|
|
537
537
|
| `MSSH_COMPLETE_EDITOR` | `1` turns on the plain-bash mssh line editor (`install bash editor` sets it) |
|
|
538
538
|
| `MSSH_COMPLETE_PING_TTL` | Seconds a host that answered ping is expected to keep answering (default: mssh's unreachable host expiry, 600) |
|
|
539
539
|
| `MSSH_COMPLETE_DEBUG` | `1` logs errors to `complete.log` in the cache directory |
|
|
540
540
|
|
|
541
|
-
> Tested with bash 4.2 to 5.3, zsh 5.
|
|
541
|
+
> Tested with bash 4.2 to 5.3, zsh 5.0.2 to 5.9 (with `compinit` loaded; zsh-autosuggestions 0.7.1; zsh-syntax-highlighting 0.7.1 and 0.8.0), fish 3.3 to 4.0 and the 2026-09-08 ble.sh nightly. On fish 2, install succeeds but the glue registers nothing ([limitations](docs/limitations.md#install-on-fish-2-succeeds-and-does-nothing)). Since 6.28 mssh records hosts in its history as typed; older history lines hold them expanded.
|
|
542
542
|
|
|
543
543
|
> After upgrading mssh, run `mssh --completion install` again to get the new shell glue. Glue from an older mssh keeps working, without the newer features; glue from before 6.37 (bash) or 6.38 (zsh, fish) does not tell the completer your locale, so the Ctrl-R menu and the warnings are drawn in ASCII until you do ([limitations](docs/limitations.md#older-glue-files-draw-the-ctrl-r-menu-and-warnings-in-ascii)).
|
|
544
544
|
|
|
545
545
|
> 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.
|
|
546
546
|
|
|
547
|
+
> 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)).
|
|
548
|
+
|
|
547
549
|
> 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.
|
|
548
550
|
|
|
549
551
|
> The bash glue runs with `nocasematch` off and gives you your setting back when it returns; with `shopt -s nocasematch` on, a Ctrl-C during a TAB can leave it off ([limitations](docs/limitations.md#with-nocasematch-on-in-bash-a-ctrl-c-during-a-tab-can-leave-it-off)). Under `bind TAB:menu-complete`, and picked from ble.sh's menu, mssh's words beside the words of a command like git (which asks for no space, `--format=` beside `--oneline `) go in without a space ([limitations](docs/limitations.md#under-menu-complete-or-bleshs-menu-msshs-words-beside-a-nospace-commands-mixed-words-get-no-space)). Where python-argcomplete's global completer (`complete -D`) is set, a remote command with no completion file completes local file names, as with bash-completion alone: mssh never runs a local program named like the remote command ([limitations](docs/limitations.md#bash-a-remote-command-with-no-completion-file-completes-local-file-names-where-python-argcompletes-global-completer-is-set)).
|
|
550
552
|
|
|
551
553
|
> With ble.sh, one of mssh's remote words (from its history) that names a directory on this machine goes in with `/` and no space ([limitations](docs/limitations.md#blesh-a-remote-word-of-msshs-that-names-a-local-directory-gets-a--and-no-space)), and a remote `~/...` path from mssh's history goes in with a bare `~`, which this shell expands to your local home ([limitations](docs/limitations.md#blesh-a-remote--path-from-msshs-history-goes-in-with-a-bare-)); plain bash keeps the space and inserts `\~`.
|
|
552
554
|
|
|
553
|
-
> With ble.sh, a word that ble.sh splits at an `=` or `:` after a quote, a backslash or an expansion (`"a"=b`, `$V:x`) is read as in 6.39; a `~` after such a split comes back as this machine's home ([limitations](docs/limitations.md#blesh-a-word-split-at-an--or--after-a-quote-backslash-or-expansion-is-read-as-in-639)). On bash 4.3 and 4.4, a remote command's `-o noquote` is not seen, so the local file names completed for it are quoted ([limitations](docs/limitations.md#bash-43-and-44-a-remote-commands--o-noquote-is-not-seen)).
|
|
555
|
+
> With ble.sh, a word that ble.sh splits at an `=` or `:` after a quote, a backslash or an expansion (`"a"=b`, `$V:x`) is read as in 6.39; a `~` after such a split comes back as this machine's home ([limitations](docs/limitations.md#blesh-a-word-split-at-an--or--after-a-quote-backslash-or-expansion-is-read-as-in-639)). On bash 4.3 and 4.4, a remote command's `-o noquote` is not seen, so the local file names completed for it are quoted ([limitations](docs/limitations.md#bash-43-and-44-a-remote-commands--o-noquote-is-not-seen)).
|
|
556
|
+
|
|
557
|
+
> With ble.sh, in a quoted word, ble.sh's second try (matching the typed letters in any order) 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; typing the start of the name still completes ([limitations](docs/limitations.md#blesh-in-a-quoted-word-the-second-try-finds-nothing-after-a-directory-or-an-expansion)).
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
> With zsh before 5.8 and zsh-autosuggestions in its default asynchronous mode, a Ctrl-C while typing an mssh line now and then 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)).
|
|
561
|
+
|
|
562
|
+
> In zsh, a double-quoted word holding an expansion (`mssh h "ls $PWD/zzp<TAB>`) is still expanded, as before, where your completers include `_expand` ([limitations](docs/limitations.md#zsh-a-double-quoted-expansion-is-still-expanded-where-the-completer-is-_expand)). It also applies only on a line that starts with an mssh name, not after `FOO=1`, `sudo`, `time`, `;` or `&&`, or through an alias (to be fixed in 6.44, [limitations](docs/limitations.md#zsh-the-quote-rewrite-on-a-line-that-does-not-start-with-mssh)), and going on into a directory completed in such a word gives no names (6.44, [limitations](docs/limitations.md#zsh-going-on-into-a-directory-completed-in-a-double-quote-with-an-expansion-gives-no-names)). In zsh, `mssh h "cat $HOM<TAB>` gives `"cat $HOME ` with the quote still open ([limitations](docs/limitations.md#zsh-a-variable-name-typed-inside-a-double-quoted-command-is-completed-with-a-space-and-the-quote-left-open)). In bash with bash-completion, a `~name` word in a quoted command (`mssh h "cat ~bi<TAB>`) closes the quote ([limitations](docs/limitations.md#bash-completion-a-name-word-closes-the-quote)); and when TAB's query misses its time limit the fallback to file names of this shell quotes them for this shell alone, not for the remote one (6.44, [limitations](docs/limitations.md#tab-past-its-limit-inserts-a-name-quoted-for-this-shell-only)); and on bash before 5.1 a glue sourced while bash is in posix mode gives bash's default completion ([limitations](docs/limitations.md#bash-the-glue-sourced-while-the-shell-is-already-in-posix-mode-gives-bashs-default-completion)). With ble.sh, `mssh h "cat $HOM<TAB>` gives `"cat $HOME ` with the quote still open ([limitations](docs/limitations.md#blesh-a-variable-name-typed-inside-a-double-quoted-command-is-completed-with-a-space-and-the-quote-left-open)). In bash, `mssh -f "$PWD/zzs<TAB>` (also `--file "$PWD/zzs` and `--file="$PWD/zzs`) gives `"\$PWD/zzs.txt"`, so mssh receives the text `$PWD/zzs.txt` (6.44, [limitations](docs/limitations.md#bash-a-file-name-typed-inside-double-quotes-with-an-expansion-reaches-mssh-unexpanded)); in zsh, `mssh --file=zzs<TAB>` offers nothing (6.44, [limitations](docs/limitations.md#zsh---file-followed-by-a-file-name-offers-nothing)); and with zsh-autosuggestions in its default asynchronous mode, keys arriving together (`x` then Right, in one read) can still take the grey text of the older line, as the plugin alone does (6.44, [limitations](docs/limitations.md#zsh-autosuggestions-async-its-default-keys-arriving-together-take-grey-text-from-the-older-line)).
|
|
563
|
+
|
|
564
|
+
> On zsh before 5.3, mssh draws no grey text of its own and shows no warnings, as the zle hooks they need (`add-zle-hook-widget`) came in zsh 5.3; with zsh-autosuggestions loaded, its grey text still comes from mssh. TAB completion works.
|
|
554
565
|
|
|
555
566
|
## Options
|
|
556
567
|
|
|
@@ -958,7 +969,7 @@ Option names count in full only: `--user` is not `--username` and `-c` is not `-
|
|
|
958
969
|
|
|
959
970
|
Putting the command after `--` is no substitute for quotes: every word after the hosts is a command of its own, so `mssh web1 -- bash -c 'echo hi'` runs `bash`, `-c` and `echo hi` one after another (when each word is a single word, as in `mssh web1 -- ls -la`, mssh asks whether to join them).
|
|
960
971
|
|
|
961
|
-
Below is a sample help message output from multiSSH3 6.
|
|
972
|
+
Below is a sample help message output from multiSSH3 6.43 @ 2026-11-05 (no config file, 120 columns; the lines after the options list the programs found on that machine)
|
|
962
973
|
|
|
963
974
|
```bash
|
|
964
975
|
$ mssh -h
|
|
@@ -1372,6 +1383,36 @@ __DEBUG_MODE = False
|
|
|
1372
1383
|
|
|
1373
1384
|
> `__DEBUG_MODE` is used to control whether to print host thread execution debug information to its stderr.
|
|
1374
1385
|
|
|
1386
|
+
## Upgrading to 6.43 from 6.42
|
|
1387
|
+
|
|
1388
|
+
Run `mssh --completion install` again in bash (with or without ble.sh), zsh and fish: the fixes below are in the new glue. What you may notice:
|
|
1389
|
+
|
|
1390
|
+
- Fix (zsh, fish): this shell's internal functions are no longer offered as remote command names, as in bash since 6.42. In zsh: names starting with `_` (zsh's completion functions, the glue's own, a plugin's), and `compdef`, `compinit`, `add-zsh-hook`, `is-at-least` and the like, and parameters starting with `_`. In fish: names starting with `_` or `fish_` (`mssh h fish_pro<TAB>` gave `fish_prompt`, `mssh h __mssh<TAB>` the glue's own), and fish's own that only make sense in fish (`funcsave`, `prompt_pwd`, `psub` ...). A file here or a command on PATH with the name is still offered. Your other functions and aliases (`zzlocalfn`, `module`) still are, and so are fish's that a remote shell has too (`ls`, `pushd`).
|
|
1391
|
+
- Fix (bash, ble.sh): a directory completed in a quote leaves the quote open and adds no space, so you can go on into it: `mssh h "ls zzd<TAB>` gives `"ls zzdir/` (it gave `"ls zzdir" `), `mssh h "cat ~bi<TAB>` gives `"cat ~bin/` (with bash-completion loaded, every command it has a completion for also gives `~bin`, and the quote still closes: `"cat ~bin" `; a command with none stays open, except on bash 4.2, where it closes too), and `mssh h ls "zzd<TAB>` gives `ls "zzd\\&x/`. Under readline the terminal's bell rings for it, as for any TAB with more than one name (it takes a second, hidden word to keep readline from closing the quote), and with `show-all-if-ambiguous` on the two are listed (`ls zzdir/` and `ls zzdir/.`). With TAB bound to `menu-complete` the quote still closes, as before.
|
|
1392
|
+
- Fix (zsh): a double-quoted word holding an expansion stays as typed and completes: `mssh h "ls $PWD/zzd<TAB>` gives `"ls $PWD/zzdir/`. 6.42 rewrote the line to `mssh h ls\ /the/directory/zzd` and completed nothing, and `mssh h "echo $USER; cat zzp<TAB>` lost its quote and its meaning; in a quoted argument (`mssh h ls "$PWD/zzp<TAB>`) the quote went too. On an mssh line holding a double quote and a `$` or a backtick, TAB now completes where zsh's `expand-or-complete` would expand; on other lines nothing changes. The glue goes around that widget, so keys and your own widgets calling it are covered; `expand-or-complete-prefix` and `menu-expand-or-complete`, if you bind TAB to one of them, still expand. A backtick is kept but not read, so such a word completes nothing; with the cursor inside such a word (not at its end) nothing is offered.
|
|
1393
|
+
- Fix (bash before 5.2): on a host setting `TMOUT`, a TAB on an mssh line and walking away stayed logged in, and so did a login left at its first prompt, with the glue loaded: a read in the shell, timed or on a pipe, cancels the alarm of the line. TAB's timed read now runs in a subshell and the others are gone, so the auto-logout comes on time. A TAB costs about 1 ms more for that subshell (median of 40 TABs with the real engine, about 21 ms: 20.8 and 21.4 ms in 6.42, 21.2 and 22.0 ms now on bash 5.2; 26.2 and 27.3 ms on bash 4.2). It also ends TAB's rare "Alarm clock" on bash 4.2 and 4.3, which ended the shell (0 of 96 test shells in tries timed at that moment on purpose, 11 of 96 before).
|
|
1394
|
+
- 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.
|
|
1395
|
+
- 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.
|
|
1396
|
+
- 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.
|
|
1397
|
+
- 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.
|
|
1398
|
+
|
|
1399
|
+
## Upgrading to 6.42 from 6.41
|
|
1400
|
+
|
|
1401
|
+
With zsh before 5.8 (zsh 5.5 is EL8's), run `mssh --completion install` again: the Ctrl-C fix below is in the new glue. Do the same in bash, with or without ble.sh, for the Ctrl-R, ble.sh and function-name fixes (fish's glue did not change; the quoted-argument fix needs no install). What you may notice:
|
|
1402
|
+
|
|
1403
|
+
- Fix (bash): a Ctrl-R pick or a line editor edit was now and then dropped without a word, leaving the line as it was (about 1 in 50 to 100 on bash 5.2 in tests, less on other versions): the glue waits for the picker's "ready" in reads of 0.1 s, and when it arrived as one ran out, bash 5 kept its first byte where the next read wrote over it, and bash 4.2 to 4.4 dropped it. Both now count.
|
|
1404
|
+
- Fix (bash 4.2 and 4.3, e.g. CentOS 7's): the shell could end with "Alarm clock" on Ctrl-R, about once in 1000 in tests timed at that moment on purpose, when the picker's answer came as a 0.1 s wait ran out (a bash bug fixed in 4.4). The glue now ignores SIGALRM during that wait and puts your own trap for it back after.
|
|
1405
|
+
- Fix (zsh 5.0.2, CentOS 7's): the first TAB in a remote command reset your own `setopt` options for the rest of the session (`emulate -L zsh -o ...` forgets `-L` there), so `glob_dots` and the like stopped working. They now stay. mssh's own grey text and warnings still need zsh 5.3; TAB completion works on 5.0.2.
|
|
1406
|
+
|
|
1407
|
+
- Fix (zsh before 5.8): a Ctrl-C during a completion query (a TAB, the grey text, the warnings) reaches the shell and drops the line. 6.41 and earlier now and then left the terminal with the query, so the Ctrl-C went to the query and the line stayed. The queries no longer take the terminal from the shell; zsh 5.8 and later were not affected. zsh-autosuggestions' own asynchronous fetch still takes it now and then (below).
|
|
1408
|
+
- Fix (ble.sh): when a word in a quote gets nothing, ble.sh's second try, which matches the typed letters in any order, now completes it by the quote's rules: `mssh h cat "zzmp<TAB>` with a file `zzamp&b` gives `cat "zzamp\\&b"`, `mssh h "cat zzmp<TAB>` gives `"cat zzamp\\&b"`, and `mssh -f "zzmp<TAB>` gives `-f "zzamp&b"`. 6.41 offered nothing there. A name holding whitespace stays out of a quoted argument, as on the first try.
|
|
1409
|
+
- Fix (bash, ble.sh): this shell's internal functions are no longer offered as remote command names: names starting with `_` (bash-completion's `_comp_*` and `_filedir`, the glue's own), bash-completion's `quote`, `dequote` and `quote_readline`, and ble.sh's `ble`, `ble-*`, `ble/*`, `bleopt` and `blehook`, unless a file here or a command on PATH has the name. Under ble.sh `mssh h bed<TAB>` could put in a ble.sh function, and `mssh h sudo "amb<TAB>` bash-completion's `_comp__reassemble_words`, which every host would then try to run. Your other functions and aliases (`module`, `ml`, `nvm`) are still offered, as in 6.41.
|
|
1410
|
+
- Fix (bash, ble.sh, zsh, fish): in a quoted argument after another quoted one, `mssh h grep 'a' "zz<TAB>` could put in a local name holding a space (`"zz\\ a"`), which mssh would run as a command of its own. mssh joins an argument without whitespace with the command's other words, quoted or not, so such names are now left out there too. After an argument holding whitespace (`'a b'`, `zz\ a`, `''`), which mssh runs as a command of its own, the word being typed completes as a new command name.
|
|
1411
|
+
- Known limits ([limitations](docs/limitations.md#found-in-642s-review)):
|
|
1412
|
+
- 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)).
|
|
1413
|
+
- 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)).
|
|
1414
|
+
- 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)).
|
|
1415
|
+
|
|
1375
1416
|
## Upgrading to 6.41 from 6.40
|
|
1376
1417
|
|
|
1377
1418
|
Run `mssh --completion install` again (bash, ble.sh, zsh and fish) to get the new glue. What you may notice:
|
|
@@ -1395,10 +1436,7 @@ Run `mssh --completion install` again (bash, ble.sh, zsh and fish) to get the ne
|
|
|
1395
1436
|
- readline and ble.sh: `mssh h ls ${VAR:-x}/zz<TAB>` writes a broken word (`${VAR:-x\\\}/...`), as 6.40 did ([limitations](docs/limitations.md#bash-a-default-value-expansion-in-a-remote-word-is-written-broken)).
|
|
1396
1437
|
- In a quoted command, a word holding a `;`, `|` or `(` quoted for the remote shell (`mssh h "ls zz\\;<TAB>`) gets nothing more ([limitations](docs/limitations.md#a-name-holding---or--in-a-quoted-command-cannot-be-continued)).
|
|
1397
1438
|
- Whitespace in names is read as UTF-8: in a Latin-1 or GBK locale (untested) a name may be offered or left out wrongly ([limitations](docs/limitations.md#whitespace-in-names-is-read-as-utf-8)).
|
|
1398
|
-
- ble.sh: in a quoted word, letters typed out of order find nothing; only names that begin with what was typed are offered ([limitations](docs/limitations.md#blesh-letters-typed-out-of-order-in-a-quoted-word-find-nothing)).
|
|
1399
|
-
- bash: a directory completed in a quoted command closes the quote (`mssh h "ls zzd<TAB>` gives `"ls zzdir" `), as in 6.40, and so does one in a quoted argument whose name changes for the remote shell (`ls "zzd\\&x" `); to be fixed after 6.41 ([limitations](docs/limitations.md#a-directory-completed-in-a-quoted-command-or-argument-closes-the-quote)).
|
|
1400
1439
|
- When PATH finds an mssh-complete older than the glue (a system install beside a newer venv, `sudo -i`), quoted arguments complete as in 6.40; install the same version ([limitations](docs/limitations.md#with-an-engine-older-than-the-glue-quoted-arguments-behave-as-in-640)).
|
|
1401
|
-
- zsh: `mssh h "ls $PWD/zzd<TAB>` rewrites the line to `ls\ /the/directory/zzd` and completes nothing, as in 6.40; to be fixed after 6.41 ([limitations](docs/limitations.md#zsh-a-variable-in-a-double-quoted-command-is-expanded-and-nothing-completes)).
|
|
1402
1440
|
|
|
1403
1441
|
## Upgrading to 6.40 from 6.39
|
|
1404
1442
|
|