multiSSH3 6.42__tar.gz → 6.44__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.42/multiSSH3.egg-info → multissh3-6.44}/PKG-INFO +42 -11
- {multissh3-6.42 → multissh3-6.44}/README.md +41 -10
- {multissh3-6.42 → multissh3-6.44}/mssh_complete.py +558 -114
- {multissh3-6.42 → multissh3-6.44/multiSSH3.egg-info}/PKG-INFO +42 -11
- {multissh3-6.42 → multissh3-6.44}/multiSSH3.egg-info/SOURCES.txt +5 -0
- {multissh3-6.42 → multissh3-6.44}/multiSSH3.egg-info/entry_points.txt +0 -1
- {multissh3-6.42 → multissh3-6.44}/multiSSH3.py +2 -2
- multissh3-6.44/scripts/multiSSH3 +6 -0
- {multissh3-6.42 → multissh3-6.44}/setup.py +3 -1
- {multissh3-6.42 → multissh3-6.44}/tests/complete_shell_harness.py +34 -19
- multissh3-6.44/tests/shells/Dockerfile.bash3.2 +6 -0
- multissh3-6.44/tests/shells/Dockerfile.bash5.0 +8 -0
- {multissh3-6.42 → multissh3-6.44}/tests/shells/Dockerfile.bash5.1 +1 -1
- {multissh3-6.42 → multissh3-6.44}/tests/shells/Dockerfile.bash5.3 +1 -1
- {multissh3-6.42 → multissh3-6.44}/tests/shells/Dockerfile.centos7 +4 -3
- {multissh3-6.42 → multissh3-6.44}/tests/shells/Dockerfile.current +2 -2
- multissh3-6.44/tests/shells/Dockerfile.el10 +20 -0
- {multissh3-6.42 → multissh3-6.44}/tests/shells/Dockerfile.el9 +3 -2
- {multissh3-6.42 → multissh3-6.44}/tests/shells/Dockerfile.legacy +3 -2
- {multissh3-6.42 → multissh3-6.44}/tests/shells/Dockerfile.modern +1 -1
- multissh3-6.44/tests/shells/run_matrix.sh +103 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_blesh.py +3 -2
- multissh3-6.44/tests/test_complete_harness.py +45 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_index.py +4 -6
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_keys.py +481 -129
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_picker.py +20 -7
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_shells.py +1066 -59
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_zsh_options.py +5 -5
- {multissh3-6.42 → multissh3-6.44}/tests/test_packaging.py +11 -0
- multissh3-6.42/tests/shells/run_matrix.sh +0 -42
- {multissh3-6.42 → multissh3-6.44}/LICENSE +0 -0
- {multissh3-6.42 → multissh3-6.44}/MANIFEST.in +0 -0
- {multissh3-6.42 → multissh3-6.44}/multiSSH3.egg-info/dependency_links.txt +0 -0
- {multissh3-6.42 → multissh3-6.44}/multiSSH3.egg-info/top_level.txt +0 -0
- {multissh3-6.42 → multissh3-6.44}/pytest.ini +0 -0
- {multissh3-6.42 → multissh3-6.44}/setup.cfg +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/bench_complete.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/conftest.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/data/run_command_golden.json +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/replay.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_cli_branches.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_cli_option_words.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_cli_processing.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_closed_output.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_color_helpers.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_command_terminal.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_compact_hostnames.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_cli.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_context.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_diagnose.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_editor.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_engine.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_eval.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_hosts.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_hoststate.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_lex.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_mssh_helpers.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_password_spellings.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_probe.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_start.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_store.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_suggest.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_terminal.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_complete_untrusted.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_config_cli.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_config_validate.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_config_values.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_control_master_config.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_copy_id.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_curses_branches.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_curses_event_loop.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_curses_tui.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_curses_wide_chars.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_expand_hostnames.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_file_trust.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_harness_smoke.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_helpers_extra.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_history_replay.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_host.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_host_validity.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_hosts_file.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_identities_only.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_ipmi_lockout_wait.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_ipmi_logins.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_key_path_home.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_login_drop_retry.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_main_lifecycle.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_narrow_terminal.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_no_hosts.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_option_no_effect.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_options_after_command.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_output_merge.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_output_robustness.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_password_handling.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_passwords_out_of_ps.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_run_command.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_run_command_branches.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_run_command_characterization.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_run_command_exit.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_run_on_hosts.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_run_on_hosts_modes.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_runtime_branch_matrix.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_runtime_dir.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_shared_lines.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_smoke_optional.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_ssh_error_text.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_ssh_timeouts.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_sshpass_exit.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_start_run_on_hosts.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_stopped_commands.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_stream_reader.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_streamed_output.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_tui_ssh_notices.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_unavailable_hosts.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_underscore_settings.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_waiting.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/tests/test_wide_wrap.py +0 -0
- {multissh3-6.42 → multissh3-6.44}/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.44
|
|
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
|
|
@@ -155,6 +155,10 @@ It also installs `mssh-complete`, the shell autocomplete engine behind `mssh --c
|
|
|
155
155
|
|
|
156
156
|
Need Python 3.6+
|
|
157
157
|
|
|
158
|
+
- With pip 9, the pip of EL7 and EL8 (`pip3 --version`), upgrading from 6.43 or earlier and `pip3 uninstall multiSSH3` of those releases stop with `configparser.DuplicateOptionError: ... option 'multissh3' in section 'console_scripts' already exists`, and nothing changes: the installed release keeps working. Run `pip3 install -U pip` once, then upgrade or uninstall ([limitations](docs/limitations.md#pip-9-cannot-upgrade-from-or-uninstall-643-and-earlier)).
|
|
159
|
+
- With `--user` the same happens, except that `pip3 install --user -U multiSSH3` with no version does not stop: it installs the new release, which works, and leaves the old release's metadata behind. `pip3 list` then shows the old release after `pip3 uninstall multiSSH3`, and the next uninstall stops with that error. To avoid this, run `pip3 install --user -U pip` once first. If it has already happened, run that, run `pip3 uninstall multiSSH3` until it says multiSSH3 is not installed, and install again.
|
|
160
|
+
- With pip 10 or later, in a venv whose path has a space or is too long for the kernel's `#!` line, the `multiSSH3` spelling does not start (the error varies: "bad interpreter", `import: command not found`), because pip gives a script file a plain `#!` line: use `multissh3`. With pip 9 no spelling starts in such a venv, as in 6.43. uv and system or `--user` installs are not affected ([limitations](docs/limitations.md#the-multissh3-spelling-in-a-venv-with-a-space-in-its-path)).
|
|
161
|
+
|
|
158
162
|
## Configuration
|
|
159
163
|
### Config File Chain
|
|
160
164
|
multissh treat config files as definable default values.
|
|
@@ -504,7 +508,7 @@ A new block is appended to your rc file; changing or removing it replaces the fi
|
|
|
504
508
|
|
|
505
509
|
Ranking uses the rest of the line on both sides of the cursor: after `mssh gpu[01-16] "` the commands you run on those hosts come first, and in the hosts of `mssh ▮ "systemctl restart slurmd"` the hosts you restarted slurmd on come first.
|
|
506
510
|
|
|
507
|
-
Completion never removes what you typed
|
|
511
|
+
Completion never removes what you typed and prints nothing. When the engine is slow or missing, the first word and the value of mssh's file options (`-f`, `--key`, ...) get the shell's file names; every other word gets nothing, as it may be a remote command's or a password.
|
|
508
512
|
|
|
509
513
|
In bash with readline's `completion-ignore-case` on (`set completion-ignore-case on` in `~/.inputrc`, or `bind` at any time: it is read at every TAB), what you typed matches in any case, and the candidate's own spelling goes in: `mssh storage-e<TAB>` gives `Storage-East`. Names differing only in case stay different names, as mssh compares host, alias and user names exactly; when they alone are left, which readline cannot tell apart, the one in the case you typed goes in, else the most likely. The words of a command before the one being completed and the directories of a path stay as typed, and an option name typed in its own case is never turned into another (`-S` stays `-S`, never `-s`). Letters match as your locale lowers them: in a non-UTF-8 locale (`LANG=C`, or a locale the system lacks) only ASCII letters, in a Turkish UTF-8 one `I` goes with `ı` and `İ` with `i`.
|
|
510
514
|
|
|
@@ -558,18 +562,20 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
|
|
|
558
562
|
| --- | --- |
|
|
559
563
|
| `MSSH_COMPLETE_TIMEOUT` | Seconds the shell waits for an answer (default 0.3) |
|
|
560
564
|
| `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) |
|
|
565
|
+
| `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
566
|
| `MSSH_COMPLETE_SHELL_HISTORY` | Lines of shell history sent along (default 1000) |
|
|
563
567
|
| `MSSH_COMPLETE_EDITOR` | `1` turns on the plain-bash mssh line editor (`install bash editor` sets it) |
|
|
564
568
|
| `MSSH_COMPLETE_PING_TTL` | Seconds a host that answered ping is expected to keep answering (default: mssh's unreachable host expiry, 600) |
|
|
565
569
|
| `MSSH_COMPLETE_DEBUG` | `1` logs errors to `complete.log` in the cache directory |
|
|
566
570
|
|
|
567
|
-
> Tested with bash 4.2 to 5.3, zsh 5.
|
|
571
|
+
> 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
572
|
|
|
569
573
|
> 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
574
|
|
|
571
575
|
> 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
576
|
|
|
577
|
+
> 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
|
+
|
|
573
579
|
> 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
580
|
|
|
575
581
|
> 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)).
|
|
@@ -580,10 +586,11 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
|
|
|
580
586
|
|
|
581
587
|
> 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)).
|
|
582
588
|
|
|
583
|
-
> In zsh and fish, a remote command's name also completes from this shell's internal functions (zsh's `_mssh_complete_take_ctrl_r`, fish's `fish_prompt` and the glue's `__mssh_complete*`), which bash and ble.sh leave out since 6.42; to be fixed after 6.42 ([limitations](docs/limitations.md#zsh-and-fish-offer-this-shells-own-functions-as-remote-command-names)).
|
|
584
589
|
|
|
585
590
|
> 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)).
|
|
586
591
|
|
|
592
|
+
> 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)). 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 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)).
|
|
593
|
+
|
|
587
594
|
> 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.
|
|
588
595
|
|
|
589
596
|
## Options
|
|
@@ -992,7 +999,7 @@ Option names count in full only: `--user` is not `--username` and `-c` is not `-
|
|
|
992
999
|
|
|
993
1000
|
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).
|
|
994
1001
|
|
|
995
|
-
Below is a sample help message output from multiSSH3 6.
|
|
1002
|
+
Below is a sample help message output from multiSSH3 6.44 @ 2026-11-06 (no config file, 120 columns; the lines after the options list the programs found on that machine)
|
|
996
1003
|
|
|
997
1004
|
```bash
|
|
998
1005
|
$ mssh -h
|
|
@@ -1406,12 +1413,39 @@ __DEBUG_MODE = False
|
|
|
1406
1413
|
|
|
1407
1414
|
> `__DEBUG_MODE` is used to control whether to print host thread execution debug information to its stderr.
|
|
1408
1415
|
|
|
1416
|
+
## Upgrading to 6.44 from 6.43
|
|
1417
|
+
|
|
1418
|
+
Run `mssh --completion install` again (bash, ble.sh, zsh and fish): the fixes below are in the new glue. What you may notice:
|
|
1419
|
+
|
|
1420
|
+
- Change (bash, ble.sh, zsh, fish): when TAB's query misses `MSSH_COMPLETE_TIMEOUT`, or the engine fails, a word that may be a remote command's or a password now gets nothing. It got a file name quoted for this shell alone: `mssh h cat zza<TAB>` gave `zzamp\&b `, which the remote shell read as `cat zzamp&b`, and `mssh -p zza<TAB>` offered a file name at a password. The first word and the value of mssh's file options still get file names (`mssh -f zza<TAB>`, `mssh --file=zza<TAB>`); a hosts word after other options (`mssh -q zza<TAB>`) gets nothing. Left: past the limit, a name that needs quoting still goes in quoted for this shell after a remote option that mssh has too (`mssh h tail -f zza<TAB>`: `-f`, `-s`, `-k`, `--file=`; bash and zsh) ([limitations](docs/limitations.md#tab-past-its-limit-a-remote-option-that-mssh-has-too-gets-a-name-quoted-for-this-shell)).
|
|
1421
|
+
- Fix (bash): `mssh -f "$PWD/zzs<TAB>` keeps the `$`: readline escaped it, in double quotes always and outside them before bash 5.2 (also `--file`, `--file=` and `-k`), so mssh got the literal text `$PWD/zzs.txt` and found no such file. Such a word's list now shows the whole word, and mssh's history offers nothing for it. A `$` with a quote closed before the word's end (`mssh -f "$PWD"/zzs<TAB>`) gets no name, where readline would give mssh the literal `\$PWD`. With `shopt -s direxpand` bash puts the expanded path in the word, as in 6.43.
|
|
1422
|
+
- Fix (zsh): a double-quoted word holding an expansion stays as typed in any mssh command, not only on a line that starts with an mssh name: after an alias (`alias m=mssh`, `m h "ls $PWD/zzp<TAB>` gave `m h ls\ /the/directory/zzp`), `sudo`, `time`, `command`, `noglob`, `&&`, `;`, `(` or `FOO=1`. It goes by the command the cursor is in: `mssh h a; ls "$PWD/zz<TAB>` is left to zsh. Any word from the last separator (`;`, `&&`, `|`, a newline, ...) on up to the cursor may be mssh's name, whatever runs it: `sudo -u root mssh`, `nice -n 5 mssh`, `timeout 5 mssh`, `xargs mssh`, a redirection first, and an alias of any of them. So `echo mssh "$PWD/zz<TAB>` completes where zsh would expand. A function you wrote (`m() { mssh "$@"; }`) is not followed.
|
|
1423
|
+
- Fix (zsh): TAB goes on into a directory completed in a double-quoted word holding an expansion: `mssh h "ls $PWD/zzd<TAB>` for a directory `zzd x`, then `in<TAB>`, gave nothing. The same in `mssh h ls "$PWD/zzd` and `mssh h "echo $USER; ls zzd`.
|
|
1424
|
+
- Fix (zsh 5.3 and later, with zsh-autosuggestions, in its synchronous and its asynchronous mode): keys arriving together no longer take the grey text of the line before them (the plugin gives the old text back while keys are waiting, before it checks it against what was typed): at `mssh gp`, `x` Right Enter ran `gpxu[01-16] nvidia-smi`. On mssh lines the grey text goes while more keys are waiting, on any line with an mssh command in it (`sudo mssh gp`, `FOO=1 mssh gp`, an alias of mssh); a function of yours that calls mssh (`m() { mssh "$@"; }`) is not seen. Off mssh lines the plugin behaves as it does alone. Before zsh 5.3 the grey text of the older line can still run ([limitations](docs/limitations.md#zsh-before-53-with-zsh-autosuggestions-keys-arriving-together-can-run-the-older-lines-grey-text)).
|
|
1425
|
+
- Change (bash): a list of names in a quote shows directories with their `/`, as a list outside a quote does.
|
|
1426
|
+
- Fix (zsh, fish 3.3): a file name after an option's `=` completes: `mssh --file=zzs<TAB>` and, in zsh, `mssh --file="$PWD/zzs<TAB>` offered nothing. Also the one-dash options (`-f=zzs`, `-k=`, `-s=`) when the query is too slow.
|
|
1427
|
+
- Fix (ble.sh): no file name is offered at a password given as `-p=`, `--password=`, `--ipmi_password=` or `-pSECRET`.
|
|
1428
|
+
- Fix (fish): `mssh h -- -x<TAB>` printed `complete: -C: option requires an argument`.
|
|
1429
|
+
|
|
1430
|
+
## Upgrading to 6.43 from 6.42
|
|
1431
|
+
|
|
1432
|
+
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:
|
|
1433
|
+
|
|
1434
|
+
- 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`).
|
|
1435
|
+
- 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.
|
|
1436
|
+
- 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.
|
|
1437
|
+
- 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).
|
|
1438
|
+
- 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.
|
|
1439
|
+
- 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.
|
|
1440
|
+
- 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.
|
|
1441
|
+
- 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.
|
|
1442
|
+
|
|
1409
1443
|
## Upgrading to 6.42 from 6.41
|
|
1410
1444
|
|
|
1411
1445
|
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:
|
|
1412
1446
|
|
|
1413
|
-
- Fix (bash): a Ctrl-R pick or a
|
|
1414
|
-
- Fix (bash 4.2 and 4.3, e.g. CentOS 7's): the shell could end with "Alarm clock" on Ctrl-R
|
|
1447
|
+
- 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.
|
|
1448
|
+
- 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.
|
|
1415
1449
|
- 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.
|
|
1416
1450
|
|
|
1417
1451
|
- 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).
|
|
@@ -1419,7 +1453,6 @@ With zsh before 5.8 (zsh 5.5 is EL8's), run `mssh --completion install` again: t
|
|
|
1419
1453
|
- 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.
|
|
1420
1454
|
- 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.
|
|
1421
1455
|
- Known limits ([limitations](docs/limitations.md#found-in-642s-review)):
|
|
1422
|
-
- zsh and fish still offer this shell's internal functions as remote command names (zsh's `_mssh_complete_take_ctrl_r`, fish's `fish_prompt`); to be fixed after 6.42 ([limitations](docs/limitations.md#zsh-and-fish-offer-this-shells-own-functions-as-remote-command-names)).
|
|
1423
1456
|
- 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)).
|
|
1424
1457
|
- 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)).
|
|
1425
1458
|
- 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)).
|
|
@@ -1447,9 +1480,7 @@ Run `mssh --completion install` again (bash, ble.sh, zsh and fish) to get the ne
|
|
|
1447
1480
|
- 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)).
|
|
1448
1481
|
- 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)).
|
|
1449
1482
|
- 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)).
|
|
1450
|
-
- 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)).
|
|
1451
1483
|
- 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)).
|
|
1452
|
-
- 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)).
|
|
1453
1484
|
|
|
1454
1485
|
## Upgrading to 6.40 from 6.39
|
|
1455
1486
|
|
|
@@ -129,6 +129,10 @@ It also installs `mssh-complete`, the shell autocomplete engine behind `mssh --c
|
|
|
129
129
|
|
|
130
130
|
Need Python 3.6+
|
|
131
131
|
|
|
132
|
+
- With pip 9, the pip of EL7 and EL8 (`pip3 --version`), upgrading from 6.43 or earlier and `pip3 uninstall multiSSH3` of those releases stop with `configparser.DuplicateOptionError: ... option 'multissh3' in section 'console_scripts' already exists`, and nothing changes: the installed release keeps working. Run `pip3 install -U pip` once, then upgrade or uninstall ([limitations](docs/limitations.md#pip-9-cannot-upgrade-from-or-uninstall-643-and-earlier)).
|
|
133
|
+
- With `--user` the same happens, except that `pip3 install --user -U multiSSH3` with no version does not stop: it installs the new release, which works, and leaves the old release's metadata behind. `pip3 list` then shows the old release after `pip3 uninstall multiSSH3`, and the next uninstall stops with that error. To avoid this, run `pip3 install --user -U pip` once first. If it has already happened, run that, run `pip3 uninstall multiSSH3` until it says multiSSH3 is not installed, and install again.
|
|
134
|
+
- With pip 10 or later, in a venv whose path has a space or is too long for the kernel's `#!` line, the `multiSSH3` spelling does not start (the error varies: "bad interpreter", `import: command not found`), because pip gives a script file a plain `#!` line: use `multissh3`. With pip 9 no spelling starts in such a venv, as in 6.43. uv and system or `--user` installs are not affected ([limitations](docs/limitations.md#the-multissh3-spelling-in-a-venv-with-a-space-in-its-path)).
|
|
135
|
+
|
|
132
136
|
## Configuration
|
|
133
137
|
### Config File Chain
|
|
134
138
|
multissh treat config files as definable default values.
|
|
@@ -478,7 +482,7 @@ A new block is appended to your rc file; changing or removing it replaces the fi
|
|
|
478
482
|
|
|
479
483
|
Ranking uses the rest of the line on both sides of the cursor: after `mssh gpu[01-16] "` the commands you run on those hosts come first, and in the hosts of `mssh ▮ "systemctl restart slurmd"` the hosts you restarted slurmd on come first.
|
|
480
484
|
|
|
481
|
-
Completion never removes what you typed
|
|
485
|
+
Completion never removes what you typed and prints nothing. When the engine is slow or missing, the first word and the value of mssh's file options (`-f`, `--key`, ...) get the shell's file names; every other word gets nothing, as it may be a remote command's or a password.
|
|
482
486
|
|
|
483
487
|
In bash with readline's `completion-ignore-case` on (`set completion-ignore-case on` in `~/.inputrc`, or `bind` at any time: it is read at every TAB), what you typed matches in any case, and the candidate's own spelling goes in: `mssh storage-e<TAB>` gives `Storage-East`. Names differing only in case stay different names, as mssh compares host, alias and user names exactly; when they alone are left, which readline cannot tell apart, the one in the case you typed goes in, else the most likely. The words of a command before the one being completed and the directories of a path stay as typed, and an option name typed in its own case is never turned into another (`-S` stays `-S`, never `-s`). Letters match as your locale lowers them: in a non-UTF-8 locale (`LANG=C`, or a locale the system lacks) only ASCII letters, in a Turkish UTF-8 one `I` goes with `ı` and `İ` with `i`.
|
|
484
488
|
|
|
@@ -532,18 +536,20 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
|
|
|
532
536
|
| --- | --- |
|
|
533
537
|
| `MSSH_COMPLETE_TIMEOUT` | Seconds the shell waits for an answer (default 0.3) |
|
|
534
538
|
| `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) |
|
|
539
|
+
| `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
540
|
| `MSSH_COMPLETE_SHELL_HISTORY` | Lines of shell history sent along (default 1000) |
|
|
537
541
|
| `MSSH_COMPLETE_EDITOR` | `1` turns on the plain-bash mssh line editor (`install bash editor` sets it) |
|
|
538
542
|
| `MSSH_COMPLETE_PING_TTL` | Seconds a host that answered ping is expected to keep answering (default: mssh's unreachable host expiry, 600) |
|
|
539
543
|
| `MSSH_COMPLETE_DEBUG` | `1` logs errors to `complete.log` in the cache directory |
|
|
540
544
|
|
|
541
|
-
> Tested with bash 4.2 to 5.3, zsh 5.
|
|
545
|
+
> 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
546
|
|
|
543
547
|
> 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
548
|
|
|
545
549
|
> 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
550
|
|
|
551
|
+
> 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
|
+
|
|
547
553
|
> 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
554
|
|
|
549
555
|
> 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)).
|
|
@@ -554,10 +560,11 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
|
|
|
554
560
|
|
|
555
561
|
> 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)).
|
|
556
562
|
|
|
557
|
-
> In zsh and fish, a remote command's name also completes from this shell's internal functions (zsh's `_mssh_complete_take_ctrl_r`, fish's `fish_prompt` and the glue's `__mssh_complete*`), which bash and ble.sh leave out since 6.42; to be fixed after 6.42 ([limitations](docs/limitations.md#zsh-and-fish-offer-this-shells-own-functions-as-remote-command-names)).
|
|
558
563
|
|
|
559
564
|
> 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)).
|
|
560
565
|
|
|
566
|
+
> 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)). 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 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)).
|
|
567
|
+
|
|
561
568
|
> 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.
|
|
562
569
|
|
|
563
570
|
## Options
|
|
@@ -966,7 +973,7 @@ Option names count in full only: `--user` is not `--username` and `-c` is not `-
|
|
|
966
973
|
|
|
967
974
|
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).
|
|
968
975
|
|
|
969
|
-
Below is a sample help message output from multiSSH3 6.
|
|
976
|
+
Below is a sample help message output from multiSSH3 6.44 @ 2026-11-06 (no config file, 120 columns; the lines after the options list the programs found on that machine)
|
|
970
977
|
|
|
971
978
|
```bash
|
|
972
979
|
$ mssh -h
|
|
@@ -1380,12 +1387,39 @@ __DEBUG_MODE = False
|
|
|
1380
1387
|
|
|
1381
1388
|
> `__DEBUG_MODE` is used to control whether to print host thread execution debug information to its stderr.
|
|
1382
1389
|
|
|
1390
|
+
## Upgrading to 6.44 from 6.43
|
|
1391
|
+
|
|
1392
|
+
Run `mssh --completion install` again (bash, ble.sh, zsh and fish): the fixes below are in the new glue. What you may notice:
|
|
1393
|
+
|
|
1394
|
+
- Change (bash, ble.sh, zsh, fish): when TAB's query misses `MSSH_COMPLETE_TIMEOUT`, or the engine fails, a word that may be a remote command's or a password now gets nothing. It got a file name quoted for this shell alone: `mssh h cat zza<TAB>` gave `zzamp\&b `, which the remote shell read as `cat zzamp&b`, and `mssh -p zza<TAB>` offered a file name at a password. The first word and the value of mssh's file options still get file names (`mssh -f zza<TAB>`, `mssh --file=zza<TAB>`); a hosts word after other options (`mssh -q zza<TAB>`) gets nothing. Left: past the limit, a name that needs quoting still goes in quoted for this shell after a remote option that mssh has too (`mssh h tail -f zza<TAB>`: `-f`, `-s`, `-k`, `--file=`; bash and zsh) ([limitations](docs/limitations.md#tab-past-its-limit-a-remote-option-that-mssh-has-too-gets-a-name-quoted-for-this-shell)).
|
|
1395
|
+
- Fix (bash): `mssh -f "$PWD/zzs<TAB>` keeps the `$`: readline escaped it, in double quotes always and outside them before bash 5.2 (also `--file`, `--file=` and `-k`), so mssh got the literal text `$PWD/zzs.txt` and found no such file. Such a word's list now shows the whole word, and mssh's history offers nothing for it. A `$` with a quote closed before the word's end (`mssh -f "$PWD"/zzs<TAB>`) gets no name, where readline would give mssh the literal `\$PWD`. With `shopt -s direxpand` bash puts the expanded path in the word, as in 6.43.
|
|
1396
|
+
- Fix (zsh): a double-quoted word holding an expansion stays as typed in any mssh command, not only on a line that starts with an mssh name: after an alias (`alias m=mssh`, `m h "ls $PWD/zzp<TAB>` gave `m h ls\ /the/directory/zzp`), `sudo`, `time`, `command`, `noglob`, `&&`, `;`, `(` or `FOO=1`. It goes by the command the cursor is in: `mssh h a; ls "$PWD/zz<TAB>` is left to zsh. Any word from the last separator (`;`, `&&`, `|`, a newline, ...) on up to the cursor may be mssh's name, whatever runs it: `sudo -u root mssh`, `nice -n 5 mssh`, `timeout 5 mssh`, `xargs mssh`, a redirection first, and an alias of any of them. So `echo mssh "$PWD/zz<TAB>` completes where zsh would expand. A function you wrote (`m() { mssh "$@"; }`) is not followed.
|
|
1397
|
+
- Fix (zsh): TAB goes on into a directory completed in a double-quoted word holding an expansion: `mssh h "ls $PWD/zzd<TAB>` for a directory `zzd x`, then `in<TAB>`, gave nothing. The same in `mssh h ls "$PWD/zzd` and `mssh h "echo $USER; ls zzd`.
|
|
1398
|
+
- Fix (zsh 5.3 and later, with zsh-autosuggestions, in its synchronous and its asynchronous mode): keys arriving together no longer take the grey text of the line before them (the plugin gives the old text back while keys are waiting, before it checks it against what was typed): at `mssh gp`, `x` Right Enter ran `gpxu[01-16] nvidia-smi`. On mssh lines the grey text goes while more keys are waiting, on any line with an mssh command in it (`sudo mssh gp`, `FOO=1 mssh gp`, an alias of mssh); a function of yours that calls mssh (`m() { mssh "$@"; }`) is not seen. Off mssh lines the plugin behaves as it does alone. Before zsh 5.3 the grey text of the older line can still run ([limitations](docs/limitations.md#zsh-before-53-with-zsh-autosuggestions-keys-arriving-together-can-run-the-older-lines-grey-text)).
|
|
1399
|
+
- Change (bash): a list of names in a quote shows directories with their `/`, as a list outside a quote does.
|
|
1400
|
+
- Fix (zsh, fish 3.3): a file name after an option's `=` completes: `mssh --file=zzs<TAB>` and, in zsh, `mssh --file="$PWD/zzs<TAB>` offered nothing. Also the one-dash options (`-f=zzs`, `-k=`, `-s=`) when the query is too slow.
|
|
1401
|
+
- Fix (ble.sh): no file name is offered at a password given as `-p=`, `--password=`, `--ipmi_password=` or `-pSECRET`.
|
|
1402
|
+
- Fix (fish): `mssh h -- -x<TAB>` printed `complete: -C: option requires an argument`.
|
|
1403
|
+
|
|
1404
|
+
## Upgrading to 6.43 from 6.42
|
|
1405
|
+
|
|
1406
|
+
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:
|
|
1407
|
+
|
|
1408
|
+
- 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`).
|
|
1409
|
+
- 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.
|
|
1410
|
+
- 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.
|
|
1411
|
+
- 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).
|
|
1412
|
+
- 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.
|
|
1413
|
+
- 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.
|
|
1414
|
+
- 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.
|
|
1415
|
+
- 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.
|
|
1416
|
+
|
|
1383
1417
|
## Upgrading to 6.42 from 6.41
|
|
1384
1418
|
|
|
1385
1419
|
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:
|
|
1386
1420
|
|
|
1387
|
-
- Fix (bash): a Ctrl-R pick or a
|
|
1388
|
-
- Fix (bash 4.2 and 4.3, e.g. CentOS 7's): the shell could end with "Alarm clock" on Ctrl-R
|
|
1421
|
+
- 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.
|
|
1422
|
+
- 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.
|
|
1389
1423
|
- 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.
|
|
1390
1424
|
|
|
1391
1425
|
- 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).
|
|
@@ -1393,7 +1427,6 @@ With zsh before 5.8 (zsh 5.5 is EL8's), run `mssh --completion install` again: t
|
|
|
1393
1427
|
- 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.
|
|
1394
1428
|
- 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.
|
|
1395
1429
|
- Known limits ([limitations](docs/limitations.md#found-in-642s-review)):
|
|
1396
|
-
- zsh and fish still offer this shell's internal functions as remote command names (zsh's `_mssh_complete_take_ctrl_r`, fish's `fish_prompt`); to be fixed after 6.42 ([limitations](docs/limitations.md#zsh-and-fish-offer-this-shells-own-functions-as-remote-command-names)).
|
|
1397
1430
|
- 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)).
|
|
1398
1431
|
- 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)).
|
|
1399
1432
|
- 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)).
|
|
@@ -1421,9 +1454,7 @@ Run `mssh --completion install` again (bash, ble.sh, zsh and fish) to get the ne
|
|
|
1421
1454
|
- 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
1455
|
- 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
1456
|
- 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
|
-
- 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)).
|
|
1425
1457
|
- 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)).
|
|
1426
|
-
- 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)).
|
|
1427
1458
|
|
|
1428
1459
|
## Upgrading to 6.40 from 6.39
|
|
1429
1460
|
|