multiSSH3 6.43__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.43/multiSSH3.egg-info → multissh3-6.44}/PKG-INFO +22 -4
- {multissh3-6.43 → multissh3-6.44}/README.md +21 -3
- {multissh3-6.43 → multissh3-6.44}/mssh_complete.py +238 -64
- {multissh3-6.43 → multissh3-6.44/multiSSH3.egg-info}/PKG-INFO +22 -4
- {multissh3-6.43 → multissh3-6.44}/multiSSH3.egg-info/SOURCES.txt +4 -0
- {multissh3-6.43 → multissh3-6.44}/multiSSH3.egg-info/entry_points.txt +0 -1
- {multissh3-6.43 → multissh3-6.44}/multiSSH3.py +1 -1
- multissh3-6.44/scripts/multiSSH3 +6 -0
- {multissh3-6.43 → multissh3-6.44}/setup.py +3 -1
- {multissh3-6.43 → multissh3-6.44}/tests/complete_shell_harness.py +31 -19
- multissh3-6.44/tests/shells/Dockerfile.bash3.2 +6 -0
- multissh3-6.44/tests/shells/Dockerfile.el10 +20 -0
- {multissh3-6.43 → multissh3-6.44}/tests/shells/run_matrix.sh +11 -8
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_blesh.py +1 -1
- multissh3-6.44/tests/test_complete_harness.py +45 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_keys.py +226 -141
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_shells.py +449 -53
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_zsh_options.py +5 -5
- {multissh3-6.43 → multissh3-6.44}/tests/test_packaging.py +11 -0
- {multissh3-6.43 → multissh3-6.44}/LICENSE +0 -0
- {multissh3-6.43 → multissh3-6.44}/MANIFEST.in +0 -0
- {multissh3-6.43 → multissh3-6.44}/multiSSH3.egg-info/dependency_links.txt +0 -0
- {multissh3-6.43 → multissh3-6.44}/multiSSH3.egg-info/top_level.txt +0 -0
- {multissh3-6.43 → multissh3-6.44}/pytest.ini +0 -0
- {multissh3-6.43 → multissh3-6.44}/setup.cfg +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/bench_complete.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/conftest.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/data/run_command_golden.json +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/replay.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/shells/Dockerfile.bash5.0 +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/shells/Dockerfile.bash5.1 +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/shells/Dockerfile.bash5.3 +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/shells/Dockerfile.centos7 +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/shells/Dockerfile.current +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/shells/Dockerfile.el9 +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/shells/Dockerfile.legacy +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/shells/Dockerfile.modern +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_cli_branches.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_cli_option_words.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_cli_processing.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_closed_output.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_color_helpers.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_command_terminal.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_compact_hostnames.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_cli.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_context.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_diagnose.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_editor.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_engine.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_eval.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_hosts.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_hoststate.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_index.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_lex.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_mssh_helpers.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_password_spellings.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_picker.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_probe.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_start.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_store.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_suggest.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_terminal.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_complete_untrusted.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_config_cli.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_config_validate.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_config_values.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_control_master_config.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_copy_id.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_curses_branches.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_curses_event_loop.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_curses_tui.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_curses_wide_chars.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_expand_hostnames.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_file_trust.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_harness_smoke.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_helpers_extra.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_history_replay.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_host.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_host_validity.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_hosts_file.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_identities_only.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_ipmi_lockout_wait.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_ipmi_logins.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_key_path_home.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_login_drop_retry.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_main_lifecycle.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_narrow_terminal.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_no_hosts.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_option_no_effect.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_options_after_command.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_output_merge.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_output_robustness.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_password_handling.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_passwords_out_of_ps.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_run_command.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_run_command_branches.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_run_command_characterization.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_run_command_exit.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_run_on_hosts.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_run_on_hosts_modes.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_runtime_branch_matrix.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_runtime_dir.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_shared_lines.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_smoke_optional.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_ssh_error_text.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_ssh_timeouts.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_sshpass_exit.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_start_run_on_hosts.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_stopped_commands.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_stream_reader.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_streamed_output.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_tui_ssh_notices.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_unavailable_hosts.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_underscore_settings.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_waiting.py +0 -0
- {multissh3-6.43 → multissh3-6.44}/tests/test_wide_wrap.py +0 -0
- {multissh3-6.43 → 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
|
|
|
@@ -585,7 +589,7 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
|
|
|
585
589
|
|
|
586
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)).
|
|
587
591
|
|
|
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)).
|
|
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)).
|
|
589
593
|
|
|
590
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.
|
|
591
595
|
|
|
@@ -995,7 +999,7 @@ Option names count in full only: `--user` is not `--username` and `-c` is not `-
|
|
|
995
999
|
|
|
996
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).
|
|
997
1001
|
|
|
998
|
-
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)
|
|
999
1003
|
|
|
1000
1004
|
```bash
|
|
1001
1005
|
$ mssh -h
|
|
@@ -1409,6 +1413,20 @@ __DEBUG_MODE = False
|
|
|
1409
1413
|
|
|
1410
1414
|
> `__DEBUG_MODE` is used to control whether to print host thread execution debug information to its stderr.
|
|
1411
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
|
+
|
|
1412
1430
|
## Upgrading to 6.43 from 6.42
|
|
1413
1431
|
|
|
1414
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:
|
|
@@ -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
|
|
|
@@ -559,7 +563,7 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
|
|
|
559
563
|
|
|
560
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)).
|
|
561
565
|
|
|
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)).
|
|
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)).
|
|
563
567
|
|
|
564
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.
|
|
565
569
|
|
|
@@ -969,7 +973,7 @@ Option names count in full only: `--user` is not `--username` and `-c` is not `-
|
|
|
969
973
|
|
|
970
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).
|
|
971
975
|
|
|
972
|
-
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)
|
|
973
977
|
|
|
974
978
|
```bash
|
|
975
979
|
$ mssh -h
|
|
@@ -1383,6 +1387,20 @@ __DEBUG_MODE = False
|
|
|
1383
1387
|
|
|
1384
1388
|
> `__DEBUG_MODE` is used to control whether to print host thread execution debug information to its stderr.
|
|
1385
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
|
+
|
|
1386
1404
|
## Upgrading to 6.43 from 6.42
|
|
1387
1405
|
|
|
1388
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:
|