multiSSH3 6.48__tar.gz → 6.50__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.48/multiSSH3.egg-info → multissh3-6.50}/PKG-INFO +30 -5
- {multissh3-6.48 → multissh3-6.50}/README.md +29 -4
- {multissh3-6.48 → multissh3-6.50}/mssh_complete.py +272 -160
- {multissh3-6.48 → multissh3-6.50/multiSSH3.egg-info}/PKG-INFO +30 -5
- {multissh3-6.48 → multissh3-6.50}/multiSSH3.py +2 -2
- {multissh3-6.48 → multissh3-6.50}/tests/complete_shell_harness.py +3 -3
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_keys.py +219 -148
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_picker.py +82 -2
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_shells.py +408 -21
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_terminal.py +17 -0
- {multissh3-6.48 → multissh3-6.50}/LICENSE +0 -0
- {multissh3-6.48 → multissh3-6.50}/MANIFEST.in +0 -0
- {multissh3-6.48 → multissh3-6.50}/multiSSH3.egg-info/SOURCES.txt +0 -0
- {multissh3-6.48 → multissh3-6.50}/multiSSH3.egg-info/dependency_links.txt +0 -0
- {multissh3-6.48 → multissh3-6.50}/multiSSH3.egg-info/entry_points.txt +0 -0
- {multissh3-6.48 → multissh3-6.50}/multiSSH3.egg-info/top_level.txt +0 -0
- {multissh3-6.48 → multissh3-6.50}/pytest.ini +0 -0
- {multissh3-6.48 → multissh3-6.50}/scripts/multiSSH3 +0 -0
- {multissh3-6.48 → multissh3-6.50}/setup.cfg +0 -0
- {multissh3-6.48 → multissh3-6.50}/setup.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/bench_complete.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/conftest.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/data/run_command_golden.json +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/data/zsh_double_quote_shapes.json +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/data/zsh_double_quote_shapes_6.46.json +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/replay.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/shells/Dockerfile.bash3.2 +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/shells/Dockerfile.bash5.0 +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/shells/Dockerfile.bash5.1 +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/shells/Dockerfile.bash5.3 +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/shells/Dockerfile.centos7 +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/shells/Dockerfile.current +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/shells/Dockerfile.el10 +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/shells/Dockerfile.el9 +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/shells/Dockerfile.legacy +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/shells/Dockerfile.modern +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/shells/run_matrix.sh +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_cli_branches.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_cli_option_words.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_cli_processing.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_closed_output.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_color_helpers.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_command_terminal.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_compact_hostnames.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_blesh.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_cli.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_context.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_diagnose.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_editor.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_engine.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_eval.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_harness.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_hosts.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_hoststate.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_index.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_lex.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_mssh_helpers.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_password_spellings.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_probe.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_start.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_store.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_suggest.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_untrusted.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_complete_zsh_options.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_config_cli.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_config_validate.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_config_values.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_control_master_config.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_copy_id.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_curses_branches.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_curses_event_loop.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_curses_tui.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_curses_wide_chars.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_expand_hostnames.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_file_trust.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_harness_smoke.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_helpers_extra.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_history_replay.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_host.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_host_validity.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_hosts_file.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_identities_only.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_ipmi_lockout_wait.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_ipmi_logins.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_key_path_home.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_login_drop_retry.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_main_lifecycle.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_narrow_terminal.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_no_hosts.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_option_no_effect.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_options_after_command.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_output_merge.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_output_robustness.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_packaging.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_password_handling.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_passwords_out_of_ps.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_run_command.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_run_command_branches.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_run_command_characterization.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_run_command_exit.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_run_on_hosts.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_run_on_hosts_modes.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_runtime_branch_matrix.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_runtime_dir.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_shared_lines.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_smoke_optional.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_ssh_error_text.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_ssh_timeouts.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_sshpass_exit.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_start_run_on_hosts.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_stopped_commands.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_stream_reader.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_streamed_output.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_tui_ssh_notices.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_unavailable_hosts.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_underscore_settings.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_waiting.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/test_wide_wrap.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/vt_grid.py +0 -0
- {multissh3-6.48 → multissh3-6.50}/tests/zsh_shapes_probe.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: multiSSH3
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.50
|
|
4
4
|
Summary: Run commands on multiple hosts via SSH
|
|
5
5
|
Home-page: https://github.com/yufei-pan/multiSSH3
|
|
6
6
|
Author: Yufei Pan
|
|
@@ -575,7 +575,9 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
|
|
|
575
575
|
|
|
576
576
|
> The plain-bash editor binds the space key, so every space typed in bash runs a tiny shell function; Ctrl-R becomes a key macro (the binding it replaced is called for other lines). Uninstall restores both in new shells. Such a function also fires bash's DEBUG trap, which some tools take for the start of a command: a command timer kept with the DEBUG trap (as some prompts keep theirs) counts from the first space typed instead of from Enter, and the preexec hooks of [bash-preexec](https://github.com/rcaloras/bash-preexec) (used by atuin and iTerm2's shell integration) may run at that space, before the line is complete.
|
|
577
577
|
|
|
578
|
-
> On bash 4.3 to 5.2, if a Ctrl-C
|
|
578
|
+
> On bash 4.3 to 5.2, if a Ctrl-C while a remote command's own completion works (`mssh h git chec<TAB>`) shows `^C` with no new prompt, press Ctrl-C again, not Enter: Enter runs the line without its first letter, so `mssh h rm x` runs `ssh h rm x`; a second Ctrl-C gives a clean prompt. It is bash's own bug with any command's completion, fixed in bash 5.3 ([limitations](docs/limitations.md#bash-43-to-52-a-ctrl-c-while-a-remote-commands-own-completion-works)). A Ctrl-C during mssh's own query is no signal there: the line stays as shown.
|
|
579
|
+
|
|
580
|
+
> In plain bash, a Ctrl-C pressed in the first moment after TAB, Ctrl-R or the space that opens the line editor (a millisecond or two, longer on a loaded machine) can still now and then be lost, drop the line but leave Ctrl-C ringing instead of working until the next Enter, or leave a line that Enter runs without its first letter: press Ctrl-C again ([limitations](docs/limitations.md#bash-a-ctrl-c-in-the-first-moment-after-tab-ctrl-r-or-the-line-editors-space)).
|
|
579
581
|
|
|
580
582
|
> In plain bash (without ble.sh), Ctrl-R and the line editor take their keys at the first prompt, through `PROMPT_COMMAND`. Where `PROMPT_COMMAND` is read-only (some audit setups on shared clusters make it so), they are left out without a message; TAB completion still works.
|
|
581
583
|
|
|
@@ -1414,6 +1416,29 @@ __DEBUG_MODE = False
|
|
|
1414
1416
|
|
|
1415
1417
|
> `__DEBUG_MODE` is used to control whether to print host thread execution debug information to its stderr.
|
|
1416
1418
|
|
|
1419
|
+
## Upgrading to 6.50 from 6.49
|
|
1420
|
+
|
|
1421
|
+
Run `mssh --completion install` again (zsh): the fixes below are in the new glue. What you may notice:
|
|
1422
|
+
|
|
1423
|
+
- Fix (zsh): TAB in a directory no longer writes a start that a history name further down lacks: with `zzdir/zzlocal` here and `cat zzdir/sub/zzremote` in history, `mssh h cat zzdir/<TAB>` stays at `zzdir/` (6.49: `zzdir/zz`), and `mssh h cat zzdir/s<TAB>` gives `zzdir/sub/zzremote`.
|
|
1424
|
+
- Fix (zsh): in a quoted command, a `/` in an earlier word no longer keeps history names out: `mssh h "ls /etc --col<TAB>` offers `--colzz` from history beside `ls`'s `--color=`.
|
|
1425
|
+
- Fix (zsh 5.3 and later): in a quoted command, TAB keeps the quote and the words typed that zsh itself would drop, where zsh shows its list, and the next TAB picks from it: `mssh h "df /etc -<TAB><TAB>` gives `mssh h "df /etc --all` (6.49 on zsh 5.4 to 5.9.0: `mssh h "df `).
|
|
1426
|
+
- Fix (zsh 5.0.2): one TAB that passes tens of thousands of plain names, with a command typed as words or in a single-quoted command, outside backticks, takes 1.2 to 2 s at 40,000 names (6.49: 16 to 19 s).
|
|
1427
|
+
- Change (zsh): with bang_hist on, a name holding `!` is not offered in a double quote the remote command opens in a quoted command (`mssh h "cat \"zz<TAB>`); 6.49 wrote `\"zz\\\!x\"` for it, which the remote shell got as `zz\!x`.
|
|
1428
|
+
- Known (zsh): ten entries deferred to 6.51 in [limitations](docs/limitations.md), among them a history name beside a directory that still stops TAB before its `/`, and zsh 5.0.2's TAB time with tens of thousands of names in a double-quoted command.
|
|
1429
|
+
|
|
1430
|
+
## Upgrading to 6.49 from 6.48
|
|
1431
|
+
|
|
1432
|
+
Run `mssh --completion install` again (bash): the fixes below are in the new glue. What you may notice:
|
|
1433
|
+
|
|
1434
|
+
- Fix (bash before 5.2): on a host setting `TMOUT`, Ctrl-R on an mssh line or the line editor (`MSSH_COMPLETE_EDITOR=1`) and walking away logs out again; it stayed logged in until the next Enter. The menu and the editor close after `TMOUT` seconds without a key, so bash before 5.1 can log out. bash counts `TMOUT` from the prompt, not from the last key, so there a line that takes longer than that from its prompt to Enter in the menu or the editor now logs out when they close, as any line typed that slowly does.
|
|
1435
|
+
- Fix (bash 4.3, 4.4, 5.0): after Ctrl-R and Esc on `mssh h rm x`, after a Ctrl-C in the menu, or after Esc in the editor, a Ctrl-C at the prompt showed nothing and Enter ran `ssh h rm x`. It drops the line again. A Ctrl-C right after Ctrl-R no longer leaves the terminal line by line (Ctrl-U not clearing the line); the first moment after the key is below.
|
|
1436
|
+
- Fix (bash 4.3 to 5.2): a Ctrl-C during TAB's own query (at most `MSSH_COMPLETE_TIMEOUT`, 0.3 s) showed `^C` with no new prompt, and Enter ran the line without its first letter. It is not taken now: the line stays as shown (a bell at most), Enter runs what is shown, and a second Ctrl-C drops it.
|
|
1437
|
+
- Change (bash): a Ctrl-C while the Ctrl-R menu or the line editor opens is their first key: the menu opens and closes and the line stays; the editor shows `mssh ^C` and a fresh prompt. With an engine slow to start, that waits until it is up, or for `MSSH_COMPLETE_START_TIMEOUT` (2 s) at most. The menu or the editor no longer comes up now and then with nothing reading its answer.
|
|
1438
|
+
- Known (bash 4.3 to 5.2): a Ctrl-C while a remote command's own completion works, after mssh's query (`mssh h git chec<TAB>`), still shows `^C` with no new prompt, and Enter runs the line without its first letter: press Ctrl-C again. That is bash's own bug with any command's completion, fixed in bash 5.3 ([limitations](docs/limitations.md#bash-43-to-52-a-ctrl-c-while-a-remote-commands-own-completion-works)). A Ctrl-C in the first moment after TAB, Ctrl-R or the editor's space (a millisecond or two) can still go wrong ([limitations](docs/limitations.md#bash-a-ctrl-c-in-the-first-moment-after-tab-ctrl-r-or-the-line-editors-space)).
|
|
1439
|
+
- The new glue needs the new engine for the line editor: beside an engine before 6.49, space is a plain space.
|
|
1440
|
+
- Known (zsh): the entries 6.48 deferred to 6.49 move to 6.50; zsh is as in 6.48 ([limitations](docs/limitations.md)).
|
|
1441
|
+
|
|
1417
1442
|
## Upgrading to 6.48 from 6.47
|
|
1418
1443
|
|
|
1419
1444
|
Run `mssh --completion install` again (zsh and bash): the fixes below are in the new glue. What you may notice:
|
|
@@ -1493,7 +1518,7 @@ Run `mssh --completion install` again in bash (with or without ble.sh), zsh and
|
|
|
1493
1518
|
- Fix (bash 4.3, 4.4, 5.0): a Ctrl-C up to about 0.06 s after Ctrl-R left the terminal line by line until the next Enter, so Ctrl-U no longer cleared the line. The glue now puts the terminal's mode back.
|
|
1494
1519
|
- Fix (zsh): in a double-quoted word holding an expansion (`mssh h "rm $PWD/Outer<TAB>`), file names and mssh's history words now go in quoted for the double quote (`Outer\$Inner.class` reached the remote shell as `Outer.class`); `mssh -f "$PWD/zzp<TAB>` completes with the quote closed (6.42: `mssh -f /the/dir/zzp`); the filters for this shell's own functions and parameters apply to a command's name only, so a file here named `_comps`, or a word of a command's own completion such as `_git`, is offered.
|
|
1495
1520
|
- Fix (bash): `M-*` and `M-?` after a directory in a quote no longer show or insert a hidden second word; a directory beside names left out (those holding whitespace) leaves the quote open as one alone; bash-completion's doubled directory (bash 4.2 and 4.4) no longer closes the quote. A directory completed by `scp`, `rsync` or any other command with a bash-completion completion also leaves the quote open. With `set -o posix` turned on after the glue loaded, TAB on bash before 5.1 completes remote file names (it turns posix mode off for the call, which bash before 5.1 needs for the glue's `<( )`, and back on after it, with `POSIXLY_CORRECT` as it was, exported or not). A Ctrl-C that cuts such a TAB short leaves posix mode off, and `POSIXLY_CORRECT` unset, in two cases: on bash 4.2, whenever it comes (the query or a remote command's own completion), and on bash 4.3, 4.4 and 5.0, when it comes while a remote command's own completion has a child process running (4 of 4 tries on 4.3.48, 4.4.20, 4.4.23 and 5.0.18; a Ctrl-C during the query left it on there in 12 of 12 tries each). The next TAB on an mssh line, or Ctrl-R on any line, puts it back with `POSIXLY_CORRECT` as it was; a TAB on another command, Enter and a new prompt do not. On bash 5.1 and later the glue does not turn it off. On bash 3.2 (macOS's `/bin/bash`) the glue registers nothing and prints nothing.
|
|
1496
|
-
- Known limits (
|
|
1521
|
+
- Known limits (fixed in 6.49, but for the first moment after the key: see Upgrading to 6.49): on a `TMOUT` host, Ctrl-R on an mssh line and walking away stays logged in until Enter (bash before 5.2), and so does the line editor (`MSSH_COMPLETE_EDITOR=1`, bash 4.4 to 5.1); a Ctrl-C after Ctrl-R can lose the line's first letter (bash 4.3, 4.4, 5.0), and in a small window (about 0.4% of tries) leaves the terminal cooked; a Ctrl-C during TAB's query shows `^C` with no new prompt (bash 4.3 to 5.2): press Ctrl-C again, not Enter.
|
|
1497
1522
|
|
|
1498
1523
|
## Upgrading to 6.42 from 6.41
|
|
1499
1524
|
|
|
@@ -1510,7 +1535,7 @@ With zsh before 5.8 (zsh 5.5 is EL8's), run `mssh --completion install` again: t
|
|
|
1510
1535
|
- Known limits ([limitations](docs/limitations.md#found-in-642s-review)):
|
|
1511
1536
|
- ble.sh: in a quoted word, the second try finds nothing after a directory (`mssh h cat "sub/zzmp<TAB>`) or in a word holding a `$` expansion, a leading `~` or a quote of its own; type the start of the name ([limitations](docs/limitations.md#blesh-in-a-quoted-word-the-second-try-finds-nothing-after-a-directory-or-an-expansion)).
|
|
1512
1537
|
- zsh before 5.8 with zsh-autosuggestions in its asynchronous mode (its default): a Ctrl-C while typing an mssh line now and then still keeps the line, as the plugin's own processes hold the terminal for a moment; press Ctrl-C again ([limitations](docs/limitations.md#zsh-before-58-with-zsh-autosuggestions-async-mode-a-ctrl-c-now-and-then-keeps-the-line)).
|
|
1513
|
-
- bash: in a window of microseconds at the end of the picker's start, the picker or the editor can still come up with nothing reading its answer; your choice is then not applied, so press Enter or Esc and try again (
|
|
1538
|
+
- bash: in a window of microseconds at the end of the picker's start, the picker or the editor can still come up with nothing reading its answer; your choice is then not applied, so press Enter or Esc and try again (fixed in 6.49).
|
|
1514
1539
|
|
|
1515
1540
|
## Upgrading to 6.41 from 6.40
|
|
1516
1541
|
|
|
@@ -1521,7 +1546,7 @@ Run `mssh --completion install` again (bash, ble.sh, zsh and fish) to get the ne
|
|
|
1521
1546
|
- Fix (bash, ble.sh, zsh, fish): a local file name holding whitespace is no longer offered for a remote command typed as words: `mssh h cat my\ file` made mssh run `my file` as a command of its own. Whitespace is what mssh splits words on, a no-break space too. Type such a command in quotes. Where nothing else is left, TAB offers nothing, not the local file names; a command's completion that answers with nothing (git's and grub's empty word) gets nothing under ble.sh too, as under readline.
|
|
1522
1547
|
- Fix (bash, ble.sh, fish; zsh did so already): in a remote command typed in quotes, which mssh hands on whole, a local file name goes in quoted for the remote shell inside your quote: `mssh h 'cat a<TAB>` gives `'cat a\&b'` and `mssh h "cat a<TAB>` gives `"cat a\\&b"`, so the remote shell runs `cat` on `a&b` (6.40 gave `'cat a&b'`, and the remote shell ran `b`); a name holding whitespace goes in too (`'cat my\ file'`). In `$'...'` a name goes in with its backslashes and quotes escaped for it. The command typed before the word stays as typed, and so does a `$PWD/` or `~/` at the start of the word (`mssh h "ls $PWD/zzd<TAB>` gives `"ls $PWD/zzdir"`); a directory typed in the word is written as the remote shell's word (`mssh h "cat a&b/zz<TAB>` gives `"cat a\\&b/zzfile"`), and a word holding the remote shell's quoting completes (`mssh h "cat zz\\&a<TAB>`, as TAB itself writes it), with bash-completion loaded too; where the command's own completion offers nothing, the local file names come, as for a command typed as words. The command's first word goes in the same way (`mssh h "./my<TAB>` gives `"./my\\ script"`; 6.40 and the earlier 6.41 rounds wrote it as for a command typed as words); in a later part of the command (after a `;`) it comes from any local file, not only programs, and under ble.sh a first word naming a directory whose name changes for the remote shell gets no `/` (`mssh h "./zzd<TAB>` gives `"./zzd\\&x" `).
|
|
1523
1548
|
- With ble.sh on bash before 4.3, the names inside a directory whose name needs quoting for the remote shell (`mssh h cat a\\\&dir/<TAB>`) are not offered: ble.sh there quoted the typed part again ([limitations](docs/limitations.md#blesh-before-bash-43-names-inside-a-directory-that-changes-are-left-out)). ble.sh's own file names, quoted for this shell alone, are no longer offered for a remote command's word: `mssh h rm sub/zzb<TAB>` put in `sub/zzb{a,b}`, which this shell expanded to two names.
|
|
1524
|
-
- In zsh, a name typed with this shell's quoting alone (`mssh h cat a\&<TAB>`, which mssh would pass on as `a&`) no longer completes, nor one inside a directory typed bare in a quoted command (`mssh h "cat a&b/zz<TAB>`); bash replaces such a directory with the remote shell's word ([limitations](docs/limitations.md#zsh-a-directory-the-remote-shell-would-read-otherwise-gets-no-names)).
|
|
1549
|
+
- In zsh, a name typed with this shell's quoting alone (`mssh h cat a\&<TAB>`, which mssh would pass on as `a&`) no longer completes, nor one inside a directory typed bare in a quoted command (`mssh h "cat a&b/zz<TAB>`); bash replaces such a directory with the remote shell's word ([limitations](docs/limitations.md#zsh-and-blesh-a-directory-the-remote-shell-would-read-otherwise-gets-no-names)).
|
|
1525
1550
|
- Fix (ble.sh): a word that is only an unset variable (`mssh h rm $ZZNONE<TAB>`) gets nothing; ble.sh's own default put in the names the empty value matches, `rm \*` in an empty directory, so every host ran `rm *` (6.40 did the same).
|
|
1526
1551
|
- Fix (bash, ble.sh, zsh, fish): in a quoted argument of a command typed as words (`mssh h cat "zz<TAB>`), which mssh joins with the command's other words, the names come from the command's own completion, written for your quote and quoted for the remote shell, a word holding whitespace is left out, and history offers no whole command there: `"zz\\ a"` made mssh run `cat` and `zz\ a` as commands of their own, and `mssh h sudo 'sys<TAB>` gave `sudo 'systemctl restart nginx'`.
|
|
1527
1552
|
- Fix (ble.sh with bash-completion 2.12 or later): the names for the command after `sudo`, `nohup` or `time` complete as for the command itself (`mssh h sudo cat zza<TAB>` gave `zzamp\`, and `mssh h "sudo cat zza<TAB>` put `"zzamp&b"` in place of the whole command): ble.sh's bash-completion integration took them for its own word.
|
|
@@ -549,7 +549,9 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
|
|
|
549
549
|
|
|
550
550
|
> The plain-bash editor binds the space key, so every space typed in bash runs a tiny shell function; Ctrl-R becomes a key macro (the binding it replaced is called for other lines). Uninstall restores both in new shells. Such a function also fires bash's DEBUG trap, which some tools take for the start of a command: a command timer kept with the DEBUG trap (as some prompts keep theirs) counts from the first space typed instead of from Enter, and the preexec hooks of [bash-preexec](https://github.com/rcaloras/bash-preexec) (used by atuin and iTerm2's shell integration) may run at that space, before the line is complete.
|
|
551
551
|
|
|
552
|
-
> On bash 4.3 to 5.2, if a Ctrl-C
|
|
552
|
+
> On bash 4.3 to 5.2, if a Ctrl-C while a remote command's own completion works (`mssh h git chec<TAB>`) shows `^C` with no new prompt, press Ctrl-C again, not Enter: Enter runs the line without its first letter, so `mssh h rm x` runs `ssh h rm x`; a second Ctrl-C gives a clean prompt. It is bash's own bug with any command's completion, fixed in bash 5.3 ([limitations](docs/limitations.md#bash-43-to-52-a-ctrl-c-while-a-remote-commands-own-completion-works)). A Ctrl-C during mssh's own query is no signal there: the line stays as shown.
|
|
553
|
+
|
|
554
|
+
> In plain bash, a Ctrl-C pressed in the first moment after TAB, Ctrl-R or the space that opens the line editor (a millisecond or two, longer on a loaded machine) can still now and then be lost, drop the line but leave Ctrl-C ringing instead of working until the next Enter, or leave a line that Enter runs without its first letter: press Ctrl-C again ([limitations](docs/limitations.md#bash-a-ctrl-c-in-the-first-moment-after-tab-ctrl-r-or-the-line-editors-space)).
|
|
553
555
|
|
|
554
556
|
> In plain bash (without ble.sh), Ctrl-R and the line editor take their keys at the first prompt, through `PROMPT_COMMAND`. Where `PROMPT_COMMAND` is read-only (some audit setups on shared clusters make it so), they are left out without a message; TAB completion still works.
|
|
555
557
|
|
|
@@ -1388,6 +1390,29 @@ __DEBUG_MODE = False
|
|
|
1388
1390
|
|
|
1389
1391
|
> `__DEBUG_MODE` is used to control whether to print host thread execution debug information to its stderr.
|
|
1390
1392
|
|
|
1393
|
+
## Upgrading to 6.50 from 6.49
|
|
1394
|
+
|
|
1395
|
+
Run `mssh --completion install` again (zsh): the fixes below are in the new glue. What you may notice:
|
|
1396
|
+
|
|
1397
|
+
- Fix (zsh): TAB in a directory no longer writes a start that a history name further down lacks: with `zzdir/zzlocal` here and `cat zzdir/sub/zzremote` in history, `mssh h cat zzdir/<TAB>` stays at `zzdir/` (6.49: `zzdir/zz`), and `mssh h cat zzdir/s<TAB>` gives `zzdir/sub/zzremote`.
|
|
1398
|
+
- Fix (zsh): in a quoted command, a `/` in an earlier word no longer keeps history names out: `mssh h "ls /etc --col<TAB>` offers `--colzz` from history beside `ls`'s `--color=`.
|
|
1399
|
+
- Fix (zsh 5.3 and later): in a quoted command, TAB keeps the quote and the words typed that zsh itself would drop, where zsh shows its list, and the next TAB picks from it: `mssh h "df /etc -<TAB><TAB>` gives `mssh h "df /etc --all` (6.49 on zsh 5.4 to 5.9.0: `mssh h "df `).
|
|
1400
|
+
- Fix (zsh 5.0.2): one TAB that passes tens of thousands of plain names, with a command typed as words or in a single-quoted command, outside backticks, takes 1.2 to 2 s at 40,000 names (6.49: 16 to 19 s).
|
|
1401
|
+
- Change (zsh): with bang_hist on, a name holding `!` is not offered in a double quote the remote command opens in a quoted command (`mssh h "cat \"zz<TAB>`); 6.49 wrote `\"zz\\\!x\"` for it, which the remote shell got as `zz\!x`.
|
|
1402
|
+
- Known (zsh): ten entries deferred to 6.51 in [limitations](docs/limitations.md), among them a history name beside a directory that still stops TAB before its `/`, and zsh 5.0.2's TAB time with tens of thousands of names in a double-quoted command.
|
|
1403
|
+
|
|
1404
|
+
## Upgrading to 6.49 from 6.48
|
|
1405
|
+
|
|
1406
|
+
Run `mssh --completion install` again (bash): the fixes below are in the new glue. What you may notice:
|
|
1407
|
+
|
|
1408
|
+
- Fix (bash before 5.2): on a host setting `TMOUT`, Ctrl-R on an mssh line or the line editor (`MSSH_COMPLETE_EDITOR=1`) and walking away logs out again; it stayed logged in until the next Enter. The menu and the editor close after `TMOUT` seconds without a key, so bash before 5.1 can log out. bash counts `TMOUT` from the prompt, not from the last key, so there a line that takes longer than that from its prompt to Enter in the menu or the editor now logs out when they close, as any line typed that slowly does.
|
|
1409
|
+
- Fix (bash 4.3, 4.4, 5.0): after Ctrl-R and Esc on `mssh h rm x`, after a Ctrl-C in the menu, or after Esc in the editor, a Ctrl-C at the prompt showed nothing and Enter ran `ssh h rm x`. It drops the line again. A Ctrl-C right after Ctrl-R no longer leaves the terminal line by line (Ctrl-U not clearing the line); the first moment after the key is below.
|
|
1410
|
+
- Fix (bash 4.3 to 5.2): a Ctrl-C during TAB's own query (at most `MSSH_COMPLETE_TIMEOUT`, 0.3 s) showed `^C` with no new prompt, and Enter ran the line without its first letter. It is not taken now: the line stays as shown (a bell at most), Enter runs what is shown, and a second Ctrl-C drops it.
|
|
1411
|
+
- Change (bash): a Ctrl-C while the Ctrl-R menu or the line editor opens is their first key: the menu opens and closes and the line stays; the editor shows `mssh ^C` and a fresh prompt. With an engine slow to start, that waits until it is up, or for `MSSH_COMPLETE_START_TIMEOUT` (2 s) at most. The menu or the editor no longer comes up now and then with nothing reading its answer.
|
|
1412
|
+
- Known (bash 4.3 to 5.2): a Ctrl-C while a remote command's own completion works, after mssh's query (`mssh h git chec<TAB>`), still shows `^C` with no new prompt, and Enter runs the line without its first letter: press Ctrl-C again. That is bash's own bug with any command's completion, fixed in bash 5.3 ([limitations](docs/limitations.md#bash-43-to-52-a-ctrl-c-while-a-remote-commands-own-completion-works)). A Ctrl-C in the first moment after TAB, Ctrl-R or the editor's space (a millisecond or two) can still go wrong ([limitations](docs/limitations.md#bash-a-ctrl-c-in-the-first-moment-after-tab-ctrl-r-or-the-line-editors-space)).
|
|
1413
|
+
- The new glue needs the new engine for the line editor: beside an engine before 6.49, space is a plain space.
|
|
1414
|
+
- Known (zsh): the entries 6.48 deferred to 6.49 move to 6.50; zsh is as in 6.48 ([limitations](docs/limitations.md)).
|
|
1415
|
+
|
|
1391
1416
|
## Upgrading to 6.48 from 6.47
|
|
1392
1417
|
|
|
1393
1418
|
Run `mssh --completion install` again (zsh and bash): the fixes below are in the new glue. What you may notice:
|
|
@@ -1467,7 +1492,7 @@ Run `mssh --completion install` again in bash (with or without ble.sh), zsh and
|
|
|
1467
1492
|
- Fix (bash 4.3, 4.4, 5.0): a Ctrl-C up to about 0.06 s after Ctrl-R left the terminal line by line until the next Enter, so Ctrl-U no longer cleared the line. The glue now puts the terminal's mode back.
|
|
1468
1493
|
- Fix (zsh): in a double-quoted word holding an expansion (`mssh h "rm $PWD/Outer<TAB>`), file names and mssh's history words now go in quoted for the double quote (`Outer\$Inner.class` reached the remote shell as `Outer.class`); `mssh -f "$PWD/zzp<TAB>` completes with the quote closed (6.42: `mssh -f /the/dir/zzp`); the filters for this shell's own functions and parameters apply to a command's name only, so a file here named `_comps`, or a word of a command's own completion such as `_git`, is offered.
|
|
1469
1494
|
- Fix (bash): `M-*` and `M-?` after a directory in a quote no longer show or insert a hidden second word; a directory beside names left out (those holding whitespace) leaves the quote open as one alone; bash-completion's doubled directory (bash 4.2 and 4.4) no longer closes the quote. A directory completed by `scp`, `rsync` or any other command with a bash-completion completion also leaves the quote open. With `set -o posix` turned on after the glue loaded, TAB on bash before 5.1 completes remote file names (it turns posix mode off for the call, which bash before 5.1 needs for the glue's `<( )`, and back on after it, with `POSIXLY_CORRECT` as it was, exported or not). A Ctrl-C that cuts such a TAB short leaves posix mode off, and `POSIXLY_CORRECT` unset, in two cases: on bash 4.2, whenever it comes (the query or a remote command's own completion), and on bash 4.3, 4.4 and 5.0, when it comes while a remote command's own completion has a child process running (4 of 4 tries on 4.3.48, 4.4.20, 4.4.23 and 5.0.18; a Ctrl-C during the query left it on there in 12 of 12 tries each). The next TAB on an mssh line, or Ctrl-R on any line, puts it back with `POSIXLY_CORRECT` as it was; a TAB on another command, Enter and a new prompt do not. On bash 5.1 and later the glue does not turn it off. On bash 3.2 (macOS's `/bin/bash`) the glue registers nothing and prints nothing.
|
|
1470
|
-
- Known limits (
|
|
1495
|
+
- Known limits (fixed in 6.49, but for the first moment after the key: see Upgrading to 6.49): on a `TMOUT` host, Ctrl-R on an mssh line and walking away stays logged in until Enter (bash before 5.2), and so does the line editor (`MSSH_COMPLETE_EDITOR=1`, bash 4.4 to 5.1); a Ctrl-C after Ctrl-R can lose the line's first letter (bash 4.3, 4.4, 5.0), and in a small window (about 0.4% of tries) leaves the terminal cooked; a Ctrl-C during TAB's query shows `^C` with no new prompt (bash 4.3 to 5.2): press Ctrl-C again, not Enter.
|
|
1471
1496
|
|
|
1472
1497
|
## Upgrading to 6.42 from 6.41
|
|
1473
1498
|
|
|
@@ -1484,7 +1509,7 @@ With zsh before 5.8 (zsh 5.5 is EL8's), run `mssh --completion install` again: t
|
|
|
1484
1509
|
- Known limits ([limitations](docs/limitations.md#found-in-642s-review)):
|
|
1485
1510
|
- ble.sh: in a quoted word, the second try finds nothing after a directory (`mssh h cat "sub/zzmp<TAB>`) or in a word holding a `$` expansion, a leading `~` or a quote of its own; type the start of the name ([limitations](docs/limitations.md#blesh-in-a-quoted-word-the-second-try-finds-nothing-after-a-directory-or-an-expansion)).
|
|
1486
1511
|
- zsh before 5.8 with zsh-autosuggestions in its asynchronous mode (its default): a Ctrl-C while typing an mssh line now and then still keeps the line, as the plugin's own processes hold the terminal for a moment; press Ctrl-C again ([limitations](docs/limitations.md#zsh-before-58-with-zsh-autosuggestions-async-mode-a-ctrl-c-now-and-then-keeps-the-line)).
|
|
1487
|
-
- bash: in a window of microseconds at the end of the picker's start, the picker or the editor can still come up with nothing reading its answer; your choice is then not applied, so press Enter or Esc and try again (
|
|
1512
|
+
- bash: in a window of microseconds at the end of the picker's start, the picker or the editor can still come up with nothing reading its answer; your choice is then not applied, so press Enter or Esc and try again (fixed in 6.49).
|
|
1488
1513
|
|
|
1489
1514
|
## Upgrading to 6.41 from 6.40
|
|
1490
1515
|
|
|
@@ -1495,7 +1520,7 @@ Run `mssh --completion install` again (bash, ble.sh, zsh and fish) to get the ne
|
|
|
1495
1520
|
- Fix (bash, ble.sh, zsh, fish): a local file name holding whitespace is no longer offered for a remote command typed as words: `mssh h cat my\ file` made mssh run `my file` as a command of its own. Whitespace is what mssh splits words on, a no-break space too. Type such a command in quotes. Where nothing else is left, TAB offers nothing, not the local file names; a command's completion that answers with nothing (git's and grub's empty word) gets nothing under ble.sh too, as under readline.
|
|
1496
1521
|
- Fix (bash, ble.sh, fish; zsh did so already): in a remote command typed in quotes, which mssh hands on whole, a local file name goes in quoted for the remote shell inside your quote: `mssh h 'cat a<TAB>` gives `'cat a\&b'` and `mssh h "cat a<TAB>` gives `"cat a\\&b"`, so the remote shell runs `cat` on `a&b` (6.40 gave `'cat a&b'`, and the remote shell ran `b`); a name holding whitespace goes in too (`'cat my\ file'`). In `$'...'` a name goes in with its backslashes and quotes escaped for it. The command typed before the word stays as typed, and so does a `$PWD/` or `~/` at the start of the word (`mssh h "ls $PWD/zzd<TAB>` gives `"ls $PWD/zzdir"`); a directory typed in the word is written as the remote shell's word (`mssh h "cat a&b/zz<TAB>` gives `"cat a\\&b/zzfile"`), and a word holding the remote shell's quoting completes (`mssh h "cat zz\\&a<TAB>`, as TAB itself writes it), with bash-completion loaded too; where the command's own completion offers nothing, the local file names come, as for a command typed as words. The command's first word goes in the same way (`mssh h "./my<TAB>` gives `"./my\\ script"`; 6.40 and the earlier 6.41 rounds wrote it as for a command typed as words); in a later part of the command (after a `;`) it comes from any local file, not only programs, and under ble.sh a first word naming a directory whose name changes for the remote shell gets no `/` (`mssh h "./zzd<TAB>` gives `"./zzd\\&x" `).
|
|
1497
1522
|
- With ble.sh on bash before 4.3, the names inside a directory whose name needs quoting for the remote shell (`mssh h cat a\\\&dir/<TAB>`) are not offered: ble.sh there quoted the typed part again ([limitations](docs/limitations.md#blesh-before-bash-43-names-inside-a-directory-that-changes-are-left-out)). ble.sh's own file names, quoted for this shell alone, are no longer offered for a remote command's word: `mssh h rm sub/zzb<TAB>` put in `sub/zzb{a,b}`, which this shell expanded to two names.
|
|
1498
|
-
- In zsh, a name typed with this shell's quoting alone (`mssh h cat a\&<TAB>`, which mssh would pass on as `a&`) no longer completes, nor one inside a directory typed bare in a quoted command (`mssh h "cat a&b/zz<TAB>`); bash replaces such a directory with the remote shell's word ([limitations](docs/limitations.md#zsh-a-directory-the-remote-shell-would-read-otherwise-gets-no-names)).
|
|
1523
|
+
- In zsh, a name typed with this shell's quoting alone (`mssh h cat a\&<TAB>`, which mssh would pass on as `a&`) no longer completes, nor one inside a directory typed bare in a quoted command (`mssh h "cat a&b/zz<TAB>`); bash replaces such a directory with the remote shell's word ([limitations](docs/limitations.md#zsh-and-blesh-a-directory-the-remote-shell-would-read-otherwise-gets-no-names)).
|
|
1499
1524
|
- Fix (ble.sh): a word that is only an unset variable (`mssh h rm $ZZNONE<TAB>`) gets nothing; ble.sh's own default put in the names the empty value matches, `rm \*` in an empty directory, so every host ran `rm *` (6.40 did the same).
|
|
1500
1525
|
- Fix (bash, ble.sh, zsh, fish): in a quoted argument of a command typed as words (`mssh h cat "zz<TAB>`), which mssh joins with the command's other words, the names come from the command's own completion, written for your quote and quoted for the remote shell, a word holding whitespace is left out, and history offers no whole command there: `"zz\\ a"` made mssh run `cat` and `zz\ a` as commands of their own, and `mssh h sudo 'sys<TAB>` gave `sudo 'systemctl restart nginx'`.
|
|
1501
1526
|
- Fix (ble.sh with bash-completion 2.12 or later): the names for the command after `sudo`, `nohup` or `time` complete as for the command itself (`mssh h sudo cat zza<TAB>` gave `zzamp\`, and `mssh h "sudo cat zza<TAB>` put `"zzamp&b"` in place of the whole command): ble.sh's bash-completion integration took them for its own word.
|