multiSSH3 6.47__tar.gz → 6.49__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {multissh3-6.47/multiSSH3.egg-info → multissh3-6.49}/PKG-INFO +37 -9
- {multissh3-6.47 → multissh3-6.49}/README.md +36 -8
- {multissh3-6.47 → multissh3-6.49}/mssh_complete.py +351 -156
- {multissh3-6.47 → multissh3-6.49/multiSSH3.egg-info}/PKG-INFO +37 -9
- {multissh3-6.47 → multissh3-6.49}/multiSSH3.py +2 -2
- {multissh3-6.47 → multissh3-6.49}/tests/complete_shell_harness.py +90 -10
- {multissh3-6.47 → multissh3-6.49}/tests/conftest.py +26 -0
- {multissh3-6.47 → multissh3-6.49}/tests/data/zsh_double_quote_shapes.json +20 -8
- {multissh3-6.47 → multissh3-6.49}/tests/data/zsh_double_quote_shapes_6.46.json +12 -1
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_cli.py +28 -4
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_diagnose.py +3 -3
- multissh3-6.49/tests/test_complete_harness.py +90 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_index.py +2 -1
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_keys.py +232 -155
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_picker.py +98 -4
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_shells.py +241 -40
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_terminal.py +73 -12
- {multissh3-6.47 → multissh3-6.49}/tests/test_hosts_file.py +8 -1
- multissh3-6.47/tests/test_complete_harness.py +0 -45
- {multissh3-6.47 → multissh3-6.49}/LICENSE +0 -0
- {multissh3-6.47 → multissh3-6.49}/MANIFEST.in +0 -0
- {multissh3-6.47 → multissh3-6.49}/multiSSH3.egg-info/SOURCES.txt +0 -0
- {multissh3-6.47 → multissh3-6.49}/multiSSH3.egg-info/dependency_links.txt +0 -0
- {multissh3-6.47 → multissh3-6.49}/multiSSH3.egg-info/entry_points.txt +0 -0
- {multissh3-6.47 → multissh3-6.49}/multiSSH3.egg-info/top_level.txt +0 -0
- {multissh3-6.47 → multissh3-6.49}/pytest.ini +0 -0
- {multissh3-6.47 → multissh3-6.49}/scripts/multiSSH3 +0 -0
- {multissh3-6.47 → multissh3-6.49}/setup.cfg +0 -0
- {multissh3-6.47 → multissh3-6.49}/setup.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/bench_complete.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/data/run_command_golden.json +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/replay.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/shells/Dockerfile.bash3.2 +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/shells/Dockerfile.bash5.0 +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/shells/Dockerfile.bash5.1 +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/shells/Dockerfile.bash5.3 +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/shells/Dockerfile.centos7 +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/shells/Dockerfile.current +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/shells/Dockerfile.el10 +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/shells/Dockerfile.el9 +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/shells/Dockerfile.legacy +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/shells/Dockerfile.modern +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/shells/run_matrix.sh +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_cli_branches.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_cli_option_words.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_cli_processing.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_closed_output.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_color_helpers.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_command_terminal.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_compact_hostnames.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_blesh.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_context.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_editor.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_engine.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_eval.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_hosts.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_hoststate.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_lex.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_mssh_helpers.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_password_spellings.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_probe.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_start.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_store.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_suggest.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_untrusted.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_complete_zsh_options.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_config_cli.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_config_validate.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_config_values.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_control_master_config.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_copy_id.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_curses_branches.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_curses_event_loop.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_curses_tui.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_curses_wide_chars.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_expand_hostnames.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_file_trust.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_harness_smoke.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_helpers_extra.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_history_replay.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_host.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_host_validity.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_identities_only.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_ipmi_lockout_wait.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_ipmi_logins.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_key_path_home.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_login_drop_retry.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_main_lifecycle.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_narrow_terminal.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_no_hosts.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_option_no_effect.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_options_after_command.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_output_merge.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_output_robustness.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_packaging.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_password_handling.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_passwords_out_of_ps.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_run_command.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_run_command_branches.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_run_command_characterization.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_run_command_exit.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_run_on_hosts.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_run_on_hosts_modes.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_runtime_branch_matrix.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_runtime_dir.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_shared_lines.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_smoke_optional.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_ssh_error_text.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_ssh_timeouts.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_sshpass_exit.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_start_run_on_hosts.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_stopped_commands.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_stream_reader.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_streamed_output.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_tui_ssh_notices.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_unavailable_hosts.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_underscore_settings.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_waiting.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/test_wide_wrap.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/vt_grid.py +0 -0
- {multissh3-6.47 → multissh3-6.49}/tests/zsh_shapes_probe.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: multiSSH3
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.49
|
|
4
4
|
Summary: Run commands on multiple hosts via SSH
|
|
5
5
|
Home-page: https://github.com/yufei-pan/multiSSH3
|
|
6
6
|
Author: Yufei Pan
|
|
@@ -575,7 +575,9 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
|
|
|
575
575
|
|
|
576
576
|
> The plain-bash editor binds the space key, so every space typed in bash runs a tiny shell function; Ctrl-R becomes a key macro (the binding it replaced is called for other lines). Uninstall restores both in new shells. Such a function also fires bash's DEBUG trap, which some tools take for the start of a command: a command timer kept with the DEBUG trap (as some prompts keep theirs) counts from the first space typed instead of from Enter, and the preexec hooks of [bash-preexec](https://github.com/rcaloras/bash-preexec) (used by atuin and iTerm2's shell integration) may run at that space, before the line is complete.
|
|
577
577
|
|
|
578
|
-
> On bash 4.3 to 5.2, if a Ctrl-C
|
|
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,19 +1416,45 @@ __DEBUG_MODE = False
|
|
|
1414
1416
|
|
|
1415
1417
|
> `__DEBUG_MODE` is used to control whether to print host thread execution debug information to its stderr.
|
|
1416
1418
|
|
|
1419
|
+
## Upgrading to 6.49 from 6.48
|
|
1420
|
+
|
|
1421
|
+
Run `mssh --completion install` again (bash): the fixes below are in the new glue. What you may notice:
|
|
1422
|
+
|
|
1423
|
+
- Fix (bash before 5.2): on a host setting `TMOUT`, Ctrl-R on an mssh line or the line editor (`MSSH_COMPLETE_EDITOR=1`) and walking away logs out again; it stayed logged in until the next Enter. The menu and the editor close after `TMOUT` seconds without a key, so bash before 5.1 can log out. bash counts `TMOUT` from the prompt, not from the last key, so there a line that takes longer than that from its prompt to Enter in the menu or the editor now logs out when they close, as any line typed that slowly does.
|
|
1424
|
+
- Fix (bash 4.3, 4.4, 5.0): after Ctrl-R and Esc on `mssh h rm x`, after a Ctrl-C in the menu, or after Esc in the editor, a Ctrl-C at the prompt showed nothing and Enter ran `ssh h rm x`. It drops the line again. A Ctrl-C right after Ctrl-R no longer leaves the terminal line by line (Ctrl-U not clearing the line); the first moment after the key is below.
|
|
1425
|
+
- Fix (bash 4.3 to 5.2): a Ctrl-C during TAB's own query (at most `MSSH_COMPLETE_TIMEOUT`, 0.3 s) showed `^C` with no new prompt, and Enter ran the line without its first letter. It is not taken now: the line stays as shown (a bell at most), Enter runs what is shown, and a second Ctrl-C drops it.
|
|
1426
|
+
- Change (bash): a Ctrl-C while the Ctrl-R menu or the line editor opens is their first key: the menu opens and closes and the line stays; the editor shows `mssh ^C` and a fresh prompt. With an engine slow to start, that waits until it is up, or for `MSSH_COMPLETE_START_TIMEOUT` (2 s) at most. The menu or the editor no longer comes up now and then with nothing reading its answer.
|
|
1427
|
+
- Known (bash 4.3 to 5.2): a Ctrl-C while a remote command's own completion works, after mssh's query (`mssh h git chec<TAB>`), still shows `^C` with no new prompt, and Enter runs the line without its first letter: press Ctrl-C again. That is bash's own bug with any command's completion, fixed in bash 5.3 ([limitations](docs/limitations.md#bash-43-to-52-a-ctrl-c-while-a-remote-commands-own-completion-works)). A Ctrl-C in the first moment after TAB, Ctrl-R or the editor's space (a millisecond or two) can still go wrong ([limitations](docs/limitations.md#bash-a-ctrl-c-in-the-first-moment-after-tab-ctrl-r-or-the-line-editors-space)).
|
|
1428
|
+
- The new glue needs the new engine for the line editor: beside an engine before 6.49, space is a plain space.
|
|
1429
|
+
- Known (zsh): the entries 6.48 deferred to 6.49 move to 6.50; zsh is as in 6.48 ([limitations](docs/limitations.md)).
|
|
1430
|
+
|
|
1431
|
+
## Upgrading to 6.48 from 6.47
|
|
1432
|
+
|
|
1433
|
+
Run `mssh --completion install` again (zsh and bash): the fixes below are in the new glue. What you may notice:
|
|
1434
|
+
|
|
1435
|
+
- Fix (zsh): in a double-quoted command, a word that the command splits itself (a `CFLAGS=` value, the command string of `sh -c` or `su -c`) completes again where it holds an escaped blank or a name needs quoting, as in 6.46: `mssh h "make CFLAGS=-O2\\ -ggd<TAB>` gives `-ggdb`, and `"su -c ./lzz<TAB>` with a file `lzz x` gives the word `su -c` runs as that file. Such a word holding an escaped blank beside a `\!` or a `\\\$` gets nothing (6.46 wrote it wrong).
|
|
1436
|
+
- Fix (zsh): where the command splits the word and offers nothing, zsh's default file names no longer stand in: `mssh h "su -c ./lzz\\ x<TAB>` with a file `lzz xy` wrote `./lzz\\ xy`, which `su -c` runs as `./lzz` with an argument `xy`.
|
|
1437
|
+
- Fix (zsh): in a double-quoted command holding an expansion, `mssh h "echo $USER; make CFLAGS=-O2\\ -Isub/zz<TAB>` no longer writes the text twice: it completes, or offers nothing inside backticks and where the value holds a `\\\$`. Inside backticks a single-quoted command's value the command splits (`` `mssh h 'make CFLAGS=-Izzd\\\&x/zz<TAB> ``) offers nothing too, where it wrote the text twice.
|
|
1438
|
+
- Fix (zsh): a quote the command opens at the start of a word in a double-quoted command holding an expansion is read: `mssh h "echo $USER 'zz<TAB>` gives `'zzfile'" `.
|
|
1439
|
+
- Fix (zsh): `mssh h "cat 'a' b\\c 'zz<TAB>` completes again; 6.47 offered nothing after a backslash outside a quote of the command's own.
|
|
1440
|
+
- Fix (zsh): inside `$( )`, after TAB wrote the start names holding `!` share, `"zz"\!"`, a letter typed and TAB give `"zz"\!"x"`, which mssh reads as `zz!x` (6.47 wrote `"zz\!x"`, which reached mssh as `zz\!x`). On zsh 5.0.2 (EL7) history names are offered after a `\!` typed earlier in a double-quoted command, and inside `$( )` a second TAB into a directory holding `!` completes.
|
|
1441
|
+
- Fix (zsh): inside backticks, `dd if="~/zzd<TAB>` and then `zz<TAB>` go on into the directory.
|
|
1442
|
+
- Fix (bash): a typed directory holding a `$` that is there by that name goes in written for the remote shell: `mssh h cat zzd$x/zz<TAB>` gave `zzd$x/zzin`, which a shell read as `zzd/zzin`, and gives `zzd\\\$x/zzin`. Under ble.sh a bare `$x` typed there offers nothing.
|
|
1443
|
+
- Known (zsh, deferred to 6.49): history names in a directory typed with backslashes, beside a command's names that are no file names in a quoted word holding a `/` (`mssh h "ls /etc --col<TAB>` offers `ls`'s `--color=` alone), beside a directory a command gives with an option's text after a quote at an `=`, a history name beside a directory here, which stops TAB before the directory's `/` (`zzdir`, as in 6.47), and a quote opened partway through a word ([limitations](docs/limitations.md)).
|
|
1444
|
+
|
|
1417
1445
|
## Upgrading to 6.47 from 6.46
|
|
1418
1446
|
|
|
1419
1447
|
Run `mssh --completion install` again (zsh): the fixes below are in the new glue. What you may notice:
|
|
1420
1448
|
|
|
1421
|
-
- Fix (zsh): inside `$( )`, `<( )` and `>( )`, with `bang_hist` on, a name holding `!` in a double quote goes in with the `!` outside the quote, `"zz"\!"x"`: `$(mssh -f "zz<TAB>` gave mssh `zz\!x`, a file that is not there. On the line and inside backticks the spelling is as before. A letter typed behind such a word and a TAB write it as zsh does, `"zz\!x"`, as 6.46 did (
|
|
1449
|
+
- Fix (zsh): inside `$( )`, `<( )` and `>( )`, with `bang_hist` on, a name holding `!` in a double quote goes in with the `!` outside the quote, `"zz"\!"x"`: `$(mssh -f "zz<TAB>` gave mssh `zz\!x`, a file that is not there. On the line and inside backticks the spelling is as before. A letter typed behind such a word and a TAB write it as zsh does, `"zz\!x"`, as 6.46 did (fixed in 6.48).
|
|
1422
1450
|
- Change (zsh): a double-quoted command is split into words by the glue, not by zsh's `compset -q`, which read its backslashes wrong: `mssh h "grep \"a b\" zz<TAB>` gave `zzfilezz` and now gives `zzfile`, and TAB goes on into a directory written for the remote shell (`zzd$x`, ``zzd`x``, `zzd&x`). The quote stays open after a name, as before.
|
|
1423
1451
|
- Fix (zsh): inside backticks, TAB goes on into such a directory in a quoted command, a double-quoted word holding an expansion and after a quote at an `=` (`` `mssh h dd if="zzd<TAB>zz<TAB> ``).
|
|
1424
1452
|
- Fix (zsh): a value the command splits after a quote at an `=` keeps the quote: `mssh h make CFLAGS="-ggd<TAB>` gave `CFLAGS=-ggdb` and now gives `CFLAGS="-ggdb`, the quote left open, as in a quoted command, and its names are written for the remote shell (a directory `zz$v` reaches the remote shell as `zz$v`; 6.46 gave it `zz\$v`). `mssh h make CFLAGS="<TAB>` now lists gcc's options (what zsh completes a `CFLAGS` value with), which `CFLAGS=<TAB>` already did in 6.46: that is a long list, which zsh asks about first.
|
|
1425
1453
|
- Fix (zsh): a `~/` typed after `dd`'s `=` stays as typed, so the remote shell gets the `~`: 6.46 wrote this machine's home path there (`mssh h dd if=~/zz<TAB>`, `dd if="~/zz`, `"dd if=~/zz`), and for a typed `\~`, which is now written as `~`. A `~name/` stays as typed in a quoted command (`mssh h "dd if=~bin/ba<TAB>`); outside one it is expanded, as in 6.46.
|
|
1426
|
-
- Fix (zsh): beside the command's file names, mssh's history names are offered in a quoted command's word holding a `/`, a double-quoted word holding an expansion, and after a quote at an `=` (`mssh h "cat sub/zz<TAB>` with `mssh h "cat sub/zzremote"`, a quoted argument, in history; `cat sub/zzremote` typed as words is not offered beside a local name there). Not yet beside names that are no file names or a directory with an option's text
|
|
1454
|
+
- Fix (zsh): beside the command's file names, mssh's history names are offered in a quoted command's word holding a `/`, a double-quoted word holding an expansion, and after a quote at an `=` (`mssh h "cat sub/zz<TAB>` with `mssh h "cat sub/zzremote"`, a quoted argument, in history; `cat sub/zzremote` typed as words is not offered beside a local name there). Not yet beside names that are no file names in a quoted word holding a `/`, or a directory with an option's text after a quote at an `=` ([limitations](docs/limitations.md#zsh-in-a-quoted-word-holding-a--no-history-name-beside-a-commands-names-that-are-no-file-names)), or in a directory typed with backslashes ([limitations](docs/limitations.md#zsh-in-a-directory-typed-with-backslashes-no-history-names-beside-the-local-ones)).
|
|
1427
1455
|
- Fix (zsh): in a command inside an open `<(` or `>(`, a double-quoted word holding an expansion is completed, not expanded, as inside `$(`.
|
|
1428
1456
|
- Change (zsh): TAB no longer escapes a `!` typed bare earlier in a double-quoted command (`mssh h "echo a!b zz<TAB>`): zsh expands it on Enter, as without TAB. A `\!` typed there stays as typed. Inside `$( )`, zsh's own TAB expands such a `!b` from history first, or drops it when no history line matches (with any command, with or without mssh; `setopt no_bang_hist` avoids it; [limitations](docs/limitations.md#zsh-tab-inside-a-command-substitution-expands-a-bare-b-from-history)).
|
|
1429
|
-
- Known (zsh, deferred to 6.48): a few shapes of the above are not done yet, among them a quote opened inside a double-quoted word holding an expansion, an escaped blank or a name that needs quoting in a word the command splits itself (`mssh h "make CFLAGS=-O2\\ -ggd<TAB>`, `"sh -c ls\\ zz<TAB>`, and `"su -c ./lzz<TAB>` with a file `lzz x` stay as typed, where 6.46 completed them; for `su -c` and a file that is not executable, 6.46's word on zsh 5.0.2 was one that `su -c` splits), and two cases on zsh 5.0.2:
|
|
1457
|
+
- Known (zsh, deferred to 6.48): a few shapes of the above are not done yet, among them a quote opened inside a double-quoted word holding an expansion, an escaped blank or a name that needs quoting in a word the command splits itself (`mssh h "make CFLAGS=-O2\\ -ggd<TAB>`, `"sh -c ls\\ zz<TAB>`, and `"su -c ./lzz<TAB>` with a file `lzz x` stay as typed, where 6.46 completed them; for `su -c` and a file that is not executable, 6.46's word on zsh 5.0.2 was one that `su -c` splits), and two cases on zsh 5.0.2: 6.47's [limitations](docs/limitations.md) listed them as `deferred (6.48)`; 6.48 fixes them, but for five, now deferred to 6.49 or waiting on a zsh fix.
|
|
1430
1458
|
|
|
1431
1459
|
## Upgrading to 6.46 from 6.45
|
|
1432
1460
|
|
|
@@ -1435,7 +1463,7 @@ Run `mssh --completion install` again (zsh): the fixes below are in the new glue
|
|
|
1435
1463
|
- Fix (zsh): a quote after a plain name's `=` stays, as after a remote option's: `mssh h dd if="zz<TAB>` gave `if=zzfile ` and now gives `if="zzfile" `, `make VAR="zz<TAB>` the same; beside another name TAB no longer takes the quote back (`if="zz` stayed `if=zz`).
|
|
1436
1464
|
- Fix (zsh): inside backticks, a name that needs quoting is offered again, written for the extra reading backticks get: with a file `zzs$v`, `` `mssh h cat zz<TAB> `` gives `` `mssh h cat zzs\\\\\\\$v ``, and the remote shell gets `cat zzs$v`, as in `$( )`. Also in quoted commands and arguments, after `--output="` and `if="`, history names, and mssh's own file options: `` `mssh -f zz<TAB> `` gave `zzs\$v`, so mssh got `-f zzs`, and now gives `zzs\\\$v`. TAB goes on into such a directory (`` `mssh h cat zzd<TAB>zz<TAB> `` for `zzd&x/zzin`), except in a quoted command, a double-quoted word holding an expansion, or after a quote at an `=` (fixed in 6.47).
|
|
1437
1465
|
- Fix (zsh): a backtick in single quotes, `$'...'` or after a backslash no longer counts as an open one: `` mssh h echo '`' zz<TAB> `` offers `zzs$v` again, as 6.44 did.
|
|
1438
|
-
- Fix (zsh): in a word holding a `/`, mssh's history names are offered beside the command's own names: with `sub/zzlocal` here and `cat sub/zzremote` in history, `mssh h cat sub/zz<TAB>` stays as typed, and `r<TAB>` gives `sub/zzremote`. Also in `cat "sub/zz`, `sort --output=sub/zz` and `~/.zz`. Not yet in a quoted command, a double-quoted word holding an expansion or after a quote at an `=`, where they are offered when the command offers nothing, as in 6.45 (6.47 offers them there beside file names).
|
|
1466
|
+
- Fix (zsh): in a word holding a `/`, mssh's history names are offered beside the command's own names: with `sub/zzlocal` here and `mssh h "cat sub/zzremote"` in history, `mssh h cat sub/zz<TAB>` stays as typed, and `r<TAB>` gives `sub/zzremote`. Also in `cat "sub/zz`, `sort --output=sub/zz` and `~/.zz`. Not yet in a quoted command, a double-quoted word holding an expansion or after a quote at an `=`, where they are offered when the command offers nothing, as in 6.45 (6.47 offers them there beside file names).
|
|
1439
1467
|
- Known (zsh, deferred to 6.47): inside `$(`, with `bang_hist` on (zsh's default), a double-quoted name holding `!` reaches mssh as `\!`: `$(mssh -f "zz<TAB>` for a file `zz!x` gives mssh `-f zz\!x`. On the line and inside backticks it reaches mssh as `zz!x`. 6.45 does the same, except after a quote at an `=` (`$(mssh h dd if="zz<TAB>`), where 6.45 dropped the quote and mssh got `if=zz!x` (fixed in 6.47).
|
|
1440
1468
|
- Known (zsh, deferred to 6.47): a value that the command's completion splits after a quote at an `=` loses the quote, as in 6.45: `mssh h make CFLAGS="-ggd<TAB>` gives `CFLAGS=-ggdb`. With a history name for it the quote stays, except for a value holding a `/` with a local name beside it (fixed in 6.47).
|
|
1441
1469
|
- Known (zsh, deferred to 6.47): in a double-quoted command holding `\"`, TAB puts the name after the typed word: `mssh h "grep \"a b\" zz<TAB>` gives `zzfilezz`, as in 6.45 and zsh's own `compset -q` (fixed in 6.47).
|
|
@@ -1479,7 +1507,7 @@ Run `mssh --completion install` again in bash (with or without ble.sh), zsh and
|
|
|
1479
1507
|
- Fix (bash 4.3, 4.4, 5.0): a Ctrl-C up to about 0.06 s after Ctrl-R left the terminal line by line until the next Enter, so Ctrl-U no longer cleared the line. The glue now puts the terminal's mode back.
|
|
1480
1508
|
- Fix (zsh): in a double-quoted word holding an expansion (`mssh h "rm $PWD/Outer<TAB>`), file names and mssh's history words now go in quoted for the double quote (`Outer\$Inner.class` reached the remote shell as `Outer.class`); `mssh -f "$PWD/zzp<TAB>` completes with the quote closed (6.42: `mssh -f /the/dir/zzp`); the filters for this shell's own functions and parameters apply to a command's name only, so a file here named `_comps`, or a word of a command's own completion such as `_git`, is offered.
|
|
1481
1509
|
- Fix (bash): `M-*` and `M-?` after a directory in a quote no longer show or insert a hidden second word; a directory beside names left out (those holding whitespace) leaves the quote open as one alone; bash-completion's doubled directory (bash 4.2 and 4.4) no longer closes the quote. A directory completed by `scp`, `rsync` or any other command with a bash-completion completion also leaves the quote open. With `set -o posix` turned on after the glue loaded, TAB on bash before 5.1 completes remote file names (it turns posix mode off for the call, which bash before 5.1 needs for the glue's `<( )`, and back on after it, with `POSIXLY_CORRECT` as it was, exported or not). A Ctrl-C that cuts such a TAB short leaves posix mode off, and `POSIXLY_CORRECT` unset, in two cases: on bash 4.2, whenever it comes (the query or a remote command's own completion), and on bash 4.3, 4.4 and 5.0, when it comes while a remote command's own completion has a child process running (4 of 4 tries on 4.3.48, 4.4.20, 4.4.23 and 5.0.18; a Ctrl-C during the query left it on there in 12 of 12 tries each). The next TAB on an mssh line, or Ctrl-R on any line, puts it back with `POSIXLY_CORRECT` as it was; a TAB on another command, Enter and a new prompt do not. On bash 5.1 and later the glue does not turn it off. On bash 3.2 (macOS's `/bin/bash`) the glue registers nothing and prints nothing.
|
|
1482
|
-
- Known limits (
|
|
1510
|
+
- Known limits (fixed in 6.49, but for the first moment after the key: see Upgrading to 6.49): on a `TMOUT` host, Ctrl-R on an mssh line and walking away stays logged in until Enter (bash before 5.2), and so does the line editor (`MSSH_COMPLETE_EDITOR=1`, bash 4.4 to 5.1); a Ctrl-C after Ctrl-R can lose the line's first letter (bash 4.3, 4.4, 5.0), and in a small window (about 0.4% of tries) leaves the terminal cooked; a Ctrl-C during TAB's query shows `^C` with no new prompt (bash 4.3 to 5.2): press Ctrl-C again, not Enter.
|
|
1483
1511
|
|
|
1484
1512
|
## Upgrading to 6.42 from 6.41
|
|
1485
1513
|
|
|
@@ -1496,7 +1524,7 @@ With zsh before 5.8 (zsh 5.5 is EL8's), run `mssh --completion install` again: t
|
|
|
1496
1524
|
- Known limits ([limitations](docs/limitations.md#found-in-642s-review)):
|
|
1497
1525
|
- ble.sh: in a quoted word, the second try finds nothing after a directory (`mssh h cat "sub/zzmp<TAB>`) or in a word holding a `$` expansion, a leading `~` or a quote of its own; type the start of the name ([limitations](docs/limitations.md#blesh-in-a-quoted-word-the-second-try-finds-nothing-after-a-directory-or-an-expansion)).
|
|
1498
1526
|
- zsh before 5.8 with zsh-autosuggestions in its asynchronous mode (its default): a Ctrl-C while typing an mssh line now and then still keeps the line, as the plugin's own processes hold the terminal for a moment; press Ctrl-C again ([limitations](docs/limitations.md#zsh-before-58-with-zsh-autosuggestions-async-mode-a-ctrl-c-now-and-then-keeps-the-line)).
|
|
1499
|
-
- 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 (
|
|
1527
|
+
- bash: in a window of microseconds at the end of the picker's start, the picker or the editor can still come up with nothing reading its answer; your choice is then not applied, so press Enter or Esc and try again (fixed in 6.49).
|
|
1500
1528
|
|
|
1501
1529
|
## Upgrading to 6.41 from 6.40
|
|
1502
1530
|
|
|
@@ -1507,7 +1535,7 @@ Run `mssh --completion install` again (bash, ble.sh, zsh and fish) to get the ne
|
|
|
1507
1535
|
- Fix (bash, ble.sh, zsh, fish): a local file name holding whitespace is no longer offered for a remote command typed as words: `mssh h cat my\ file` made mssh run `my file` as a command of its own. Whitespace is what mssh splits words on, a no-break space too. Type such a command in quotes. Where nothing else is left, TAB offers nothing, not the local file names; a command's completion that answers with nothing (git's and grub's empty word) gets nothing under ble.sh too, as under readline.
|
|
1508
1536
|
- Fix (bash, ble.sh, fish; zsh did so already): in a remote command typed in quotes, which mssh hands on whole, a local file name goes in quoted for the remote shell inside your quote: `mssh h 'cat a<TAB>` gives `'cat a\&b'` and `mssh h "cat a<TAB>` gives `"cat a\\&b"`, so the remote shell runs `cat` on `a&b` (6.40 gave `'cat a&b'`, and the remote shell ran `b`); a name holding whitespace goes in too (`'cat my\ file'`). In `$'...'` a name goes in with its backslashes and quotes escaped for it. The command typed before the word stays as typed, and so does a `$PWD/` or `~/` at the start of the word (`mssh h "ls $PWD/zzd<TAB>` gives `"ls $PWD/zzdir"`); a directory typed in the word is written as the remote shell's word (`mssh h "cat a&b/zz<TAB>` gives `"cat a\\&b/zzfile"`), and a word holding the remote shell's quoting completes (`mssh h "cat zz\\&a<TAB>`, as TAB itself writes it), with bash-completion loaded too; where the command's own completion offers nothing, the local file names come, as for a command typed as words. The command's first word goes in the same way (`mssh h "./my<TAB>` gives `"./my\\ script"`; 6.40 and the earlier 6.41 rounds wrote it as for a command typed as words); in a later part of the command (after a `;`) it comes from any local file, not only programs, and under ble.sh a first word naming a directory whose name changes for the remote shell gets no `/` (`mssh h "./zzd<TAB>` gives `"./zzd\\&x" `).
|
|
1509
1537
|
- With ble.sh on bash before 4.3, the names inside a directory whose name needs quoting for the remote shell (`mssh h cat a\\\&dir/<TAB>`) are not offered: ble.sh there quoted the typed part again ([limitations](docs/limitations.md#blesh-before-bash-43-names-inside-a-directory-that-changes-are-left-out)). ble.sh's own file names, quoted for this shell alone, are no longer offered for a remote command's word: `mssh h rm sub/zzb<TAB>` put in `sub/zzb{a,b}`, which this shell expanded to two names.
|
|
1510
|
-
- In zsh, a name typed with this shell's quoting alone (`mssh h cat a\&<TAB>`, which mssh would pass on as `a&`) no longer completes, nor one inside a directory typed bare in a quoted command (`mssh h "cat a&b/zz<TAB>`); bash replaces such a directory with the remote shell's word ([limitations](docs/limitations.md#zsh-a-directory-the-remote-shell-would-read-otherwise-gets-no-names)).
|
|
1538
|
+
- In zsh, a name typed with this shell's quoting alone (`mssh h cat a\&<TAB>`, which mssh would pass on as `a&`) no longer completes, nor one inside a directory typed bare in a quoted command (`mssh h "cat a&b/zz<TAB>`); bash replaces such a directory with the remote shell's word ([limitations](docs/limitations.md#zsh-and-blesh-a-directory-the-remote-shell-would-read-otherwise-gets-no-names)).
|
|
1511
1539
|
- Fix (ble.sh): a word that is only an unset variable (`mssh h rm $ZZNONE<TAB>`) gets nothing; ble.sh's own default put in the names the empty value matches, `rm \*` in an empty directory, so every host ran `rm *` (6.40 did the same).
|
|
1512
1540
|
- Fix (bash, ble.sh, zsh, fish): in a quoted argument of a command typed as words (`mssh h cat "zz<TAB>`), which mssh joins with the command's other words, the names come from the command's own completion, written for your quote and quoted for the remote shell, a word holding whitespace is left out, and history offers no whole command there: `"zz\\ a"` made mssh run `cat` and `zz\ a` as commands of their own, and `mssh h sudo 'sys<TAB>` gave `sudo 'systemctl restart nginx'`.
|
|
1513
1541
|
- Fix (ble.sh with bash-completion 2.12 or later): the names for the command after `sudo`, `nohup` or `time` complete as for the command itself (`mssh h sudo cat zza<TAB>` gave `zzamp\`, and `mssh h "sudo cat zza<TAB>` put `"zzamp&b"` in place of the whole command): ble.sh's bash-completion integration took them for its own word.
|
|
@@ -549,7 +549,9 @@ Hosts are checked in the background by `mssh-complete probe`: DNS, `ssh -G` (whi
|
|
|
549
549
|
|
|
550
550
|
> The plain-bash editor binds the space key, so every space typed in bash runs a tiny shell function; Ctrl-R becomes a key macro (the binding it replaced is called for other lines). Uninstall restores both in new shells. Such a function also fires bash's DEBUG trap, which some tools take for the start of a command: a command timer kept with the DEBUG trap (as some prompts keep theirs) counts from the first space typed instead of from Enter, and the preexec hooks of [bash-preexec](https://github.com/rcaloras/bash-preexec) (used by atuin and iTerm2's shell integration) may run at that space, before the line is complete.
|
|
551
551
|
|
|
552
|
-
> On bash 4.3 to 5.2, if a Ctrl-C
|
|
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,19 +1390,45 @@ __DEBUG_MODE = False
|
|
|
1388
1390
|
|
|
1389
1391
|
> `__DEBUG_MODE` is used to control whether to print host thread execution debug information to its stderr.
|
|
1390
1392
|
|
|
1393
|
+
## Upgrading to 6.49 from 6.48
|
|
1394
|
+
|
|
1395
|
+
Run `mssh --completion install` again (bash): the fixes below are in the new glue. What you may notice:
|
|
1396
|
+
|
|
1397
|
+
- Fix (bash before 5.2): on a host setting `TMOUT`, Ctrl-R on an mssh line or the line editor (`MSSH_COMPLETE_EDITOR=1`) and walking away logs out again; it stayed logged in until the next Enter. The menu and the editor close after `TMOUT` seconds without a key, so bash before 5.1 can log out. bash counts `TMOUT` from the prompt, not from the last key, so there a line that takes longer than that from its prompt to Enter in the menu or the editor now logs out when they close, as any line typed that slowly does.
|
|
1398
|
+
- Fix (bash 4.3, 4.4, 5.0): after Ctrl-R and Esc on `mssh h rm x`, after a Ctrl-C in the menu, or after Esc in the editor, a Ctrl-C at the prompt showed nothing and Enter ran `ssh h rm x`. It drops the line again. A Ctrl-C right after Ctrl-R no longer leaves the terminal line by line (Ctrl-U not clearing the line); the first moment after the key is below.
|
|
1399
|
+
- Fix (bash 4.3 to 5.2): a Ctrl-C during TAB's own query (at most `MSSH_COMPLETE_TIMEOUT`, 0.3 s) showed `^C` with no new prompt, and Enter ran the line without its first letter. It is not taken now: the line stays as shown (a bell at most), Enter runs what is shown, and a second Ctrl-C drops it.
|
|
1400
|
+
- Change (bash): a Ctrl-C while the Ctrl-R menu or the line editor opens is their first key: the menu opens and closes and the line stays; the editor shows `mssh ^C` and a fresh prompt. With an engine slow to start, that waits until it is up, or for `MSSH_COMPLETE_START_TIMEOUT` (2 s) at most. The menu or the editor no longer comes up now and then with nothing reading its answer.
|
|
1401
|
+
- Known (bash 4.3 to 5.2): a Ctrl-C while a remote command's own completion works, after mssh's query (`mssh h git chec<TAB>`), still shows `^C` with no new prompt, and Enter runs the line without its first letter: press Ctrl-C again. That is bash's own bug with any command's completion, fixed in bash 5.3 ([limitations](docs/limitations.md#bash-43-to-52-a-ctrl-c-while-a-remote-commands-own-completion-works)). A Ctrl-C in the first moment after TAB, Ctrl-R or the editor's space (a millisecond or two) can still go wrong ([limitations](docs/limitations.md#bash-a-ctrl-c-in-the-first-moment-after-tab-ctrl-r-or-the-line-editors-space)).
|
|
1402
|
+
- The new glue needs the new engine for the line editor: beside an engine before 6.49, space is a plain space.
|
|
1403
|
+
- Known (zsh): the entries 6.48 deferred to 6.49 move to 6.50; zsh is as in 6.48 ([limitations](docs/limitations.md)).
|
|
1404
|
+
|
|
1405
|
+
## Upgrading to 6.48 from 6.47
|
|
1406
|
+
|
|
1407
|
+
Run `mssh --completion install` again (zsh and bash): the fixes below are in the new glue. What you may notice:
|
|
1408
|
+
|
|
1409
|
+
- Fix (zsh): in a double-quoted command, a word that the command splits itself (a `CFLAGS=` value, the command string of `sh -c` or `su -c`) completes again where it holds an escaped blank or a name needs quoting, as in 6.46: `mssh h "make CFLAGS=-O2\\ -ggd<TAB>` gives `-ggdb`, and `"su -c ./lzz<TAB>` with a file `lzz x` gives the word `su -c` runs as that file. Such a word holding an escaped blank beside a `\!` or a `\\\$` gets nothing (6.46 wrote it wrong).
|
|
1410
|
+
- Fix (zsh): where the command splits the word and offers nothing, zsh's default file names no longer stand in: `mssh h "su -c ./lzz\\ x<TAB>` with a file `lzz xy` wrote `./lzz\\ xy`, which `su -c` runs as `./lzz` with an argument `xy`.
|
|
1411
|
+
- Fix (zsh): in a double-quoted command holding an expansion, `mssh h "echo $USER; make CFLAGS=-O2\\ -Isub/zz<TAB>` no longer writes the text twice: it completes, or offers nothing inside backticks and where the value holds a `\\\$`. Inside backticks a single-quoted command's value the command splits (`` `mssh h 'make CFLAGS=-Izzd\\\&x/zz<TAB> ``) offers nothing too, where it wrote the text twice.
|
|
1412
|
+
- Fix (zsh): a quote the command opens at the start of a word in a double-quoted command holding an expansion is read: `mssh h "echo $USER 'zz<TAB>` gives `'zzfile'" `.
|
|
1413
|
+
- Fix (zsh): `mssh h "cat 'a' b\\c 'zz<TAB>` completes again; 6.47 offered nothing after a backslash outside a quote of the command's own.
|
|
1414
|
+
- Fix (zsh): inside `$( )`, after TAB wrote the start names holding `!` share, `"zz"\!"`, a letter typed and TAB give `"zz"\!"x"`, which mssh reads as `zz!x` (6.47 wrote `"zz\!x"`, which reached mssh as `zz\!x`). On zsh 5.0.2 (EL7) history names are offered after a `\!` typed earlier in a double-quoted command, and inside `$( )` a second TAB into a directory holding `!` completes.
|
|
1415
|
+
- Fix (zsh): inside backticks, `dd if="~/zzd<TAB>` and then `zz<TAB>` go on into the directory.
|
|
1416
|
+
- Fix (bash): a typed directory holding a `$` that is there by that name goes in written for the remote shell: `mssh h cat zzd$x/zz<TAB>` gave `zzd$x/zzin`, which a shell read as `zzd/zzin`, and gives `zzd\\\$x/zzin`. Under ble.sh a bare `$x` typed there offers nothing.
|
|
1417
|
+
- Known (zsh, deferred to 6.49): history names in a directory typed with backslashes, beside a command's names that are no file names in a quoted word holding a `/` (`mssh h "ls /etc --col<TAB>` offers `ls`'s `--color=` alone), beside a directory a command gives with an option's text after a quote at an `=`, a history name beside a directory here, which stops TAB before the directory's `/` (`zzdir`, as in 6.47), and a quote opened partway through a word ([limitations](docs/limitations.md)).
|
|
1418
|
+
|
|
1391
1419
|
## Upgrading to 6.47 from 6.46
|
|
1392
1420
|
|
|
1393
1421
|
Run `mssh --completion install` again (zsh): the fixes below are in the new glue. What you may notice:
|
|
1394
1422
|
|
|
1395
|
-
- Fix (zsh): inside `$( )`, `<( )` and `>( )`, with `bang_hist` on, a name holding `!` in a double quote goes in with the `!` outside the quote, `"zz"\!"x"`: `$(mssh -f "zz<TAB>` gave mssh `zz\!x`, a file that is not there. On the line and inside backticks the spelling is as before. A letter typed behind such a word and a TAB write it as zsh does, `"zz\!x"`, as 6.46 did (
|
|
1423
|
+
- Fix (zsh): inside `$( )`, `<( )` and `>( )`, with `bang_hist` on, a name holding `!` in a double quote goes in with the `!` outside the quote, `"zz"\!"x"`: `$(mssh -f "zz<TAB>` gave mssh `zz\!x`, a file that is not there. On the line and inside backticks the spelling is as before. A letter typed behind such a word and a TAB write it as zsh does, `"zz\!x"`, as 6.46 did (fixed in 6.48).
|
|
1396
1424
|
- Change (zsh): a double-quoted command is split into words by the glue, not by zsh's `compset -q`, which read its backslashes wrong: `mssh h "grep \"a b\" zz<TAB>` gave `zzfilezz` and now gives `zzfile`, and TAB goes on into a directory written for the remote shell (`zzd$x`, ``zzd`x``, `zzd&x`). The quote stays open after a name, as before.
|
|
1397
1425
|
- Fix (zsh): inside backticks, TAB goes on into such a directory in a quoted command, a double-quoted word holding an expansion and after a quote at an `=` (`` `mssh h dd if="zzd<TAB>zz<TAB> ``).
|
|
1398
1426
|
- Fix (zsh): a value the command splits after a quote at an `=` keeps the quote: `mssh h make CFLAGS="-ggd<TAB>` gave `CFLAGS=-ggdb` and now gives `CFLAGS="-ggdb`, the quote left open, as in a quoted command, and its names are written for the remote shell (a directory `zz$v` reaches the remote shell as `zz$v`; 6.46 gave it `zz\$v`). `mssh h make CFLAGS="<TAB>` now lists gcc's options (what zsh completes a `CFLAGS` value with), which `CFLAGS=<TAB>` already did in 6.46: that is a long list, which zsh asks about first.
|
|
1399
1427
|
- Fix (zsh): a `~/` typed after `dd`'s `=` stays as typed, so the remote shell gets the `~`: 6.46 wrote this machine's home path there (`mssh h dd if=~/zz<TAB>`, `dd if="~/zz`, `"dd if=~/zz`), and for a typed `\~`, which is now written as `~`. A `~name/` stays as typed in a quoted command (`mssh h "dd if=~bin/ba<TAB>`); outside one it is expanded, as in 6.46.
|
|
1400
|
-
- Fix (zsh): beside the command's file names, mssh's history names are offered in a quoted command's word holding a `/`, a double-quoted word holding an expansion, and after a quote at an `=` (`mssh h "cat sub/zz<TAB>` with `mssh h "cat sub/zzremote"`, a quoted argument, in history; `cat sub/zzremote` typed as words is not offered beside a local name there). Not yet beside names that are no file names or a directory with an option's text
|
|
1428
|
+
- Fix (zsh): beside the command's file names, mssh's history names are offered in a quoted command's word holding a `/`, a double-quoted word holding an expansion, and after a quote at an `=` (`mssh h "cat sub/zz<TAB>` with `mssh h "cat sub/zzremote"`, a quoted argument, in history; `cat sub/zzremote` typed as words is not offered beside a local name there). Not yet beside names that are no file names in a quoted word holding a `/`, or a directory with an option's text after a quote at an `=` ([limitations](docs/limitations.md#zsh-in-a-quoted-word-holding-a--no-history-name-beside-a-commands-names-that-are-no-file-names)), or in a directory typed with backslashes ([limitations](docs/limitations.md#zsh-in-a-directory-typed-with-backslashes-no-history-names-beside-the-local-ones)).
|
|
1401
1429
|
- Fix (zsh): in a command inside an open `<(` or `>(`, a double-quoted word holding an expansion is completed, not expanded, as inside `$(`.
|
|
1402
1430
|
- Change (zsh): TAB no longer escapes a `!` typed bare earlier in a double-quoted command (`mssh h "echo a!b zz<TAB>`): zsh expands it on Enter, as without TAB. A `\!` typed there stays as typed. Inside `$( )`, zsh's own TAB expands such a `!b` from history first, or drops it when no history line matches (with any command, with or without mssh; `setopt no_bang_hist` avoids it; [limitations](docs/limitations.md#zsh-tab-inside-a-command-substitution-expands-a-bare-b-from-history)).
|
|
1403
|
-
- Known (zsh, deferred to 6.48): a few shapes of the above are not done yet, among them a quote opened inside a double-quoted word holding an expansion, an escaped blank or a name that needs quoting in a word the command splits itself (`mssh h "make CFLAGS=-O2\\ -ggd<TAB>`, `"sh -c ls\\ zz<TAB>`, and `"su -c ./lzz<TAB>` with a file `lzz x` stay as typed, where 6.46 completed them; for `su -c` and a file that is not executable, 6.46's word on zsh 5.0.2 was one that `su -c` splits), and two cases on zsh 5.0.2:
|
|
1431
|
+
- Known (zsh, deferred to 6.48): a few shapes of the above are not done yet, among them a quote opened inside a double-quoted word holding an expansion, an escaped blank or a name that needs quoting in a word the command splits itself (`mssh h "make CFLAGS=-O2\\ -ggd<TAB>`, `"sh -c ls\\ zz<TAB>`, and `"su -c ./lzz<TAB>` with a file `lzz x` stay as typed, where 6.46 completed them; for `su -c` and a file that is not executable, 6.46's word on zsh 5.0.2 was one that `su -c` splits), and two cases on zsh 5.0.2: 6.47's [limitations](docs/limitations.md) listed them as `deferred (6.48)`; 6.48 fixes them, but for five, now deferred to 6.49 or waiting on a zsh fix.
|
|
1404
1432
|
|
|
1405
1433
|
## Upgrading to 6.46 from 6.45
|
|
1406
1434
|
|
|
@@ -1409,7 +1437,7 @@ Run `mssh --completion install` again (zsh): the fixes below are in the new glue
|
|
|
1409
1437
|
- Fix (zsh): a quote after a plain name's `=` stays, as after a remote option's: `mssh h dd if="zz<TAB>` gave `if=zzfile ` and now gives `if="zzfile" `, `make VAR="zz<TAB>` the same; beside another name TAB no longer takes the quote back (`if="zz` stayed `if=zz`).
|
|
1410
1438
|
- Fix (zsh): inside backticks, a name that needs quoting is offered again, written for the extra reading backticks get: with a file `zzs$v`, `` `mssh h cat zz<TAB> `` gives `` `mssh h cat zzs\\\\\\\$v ``, and the remote shell gets `cat zzs$v`, as in `$( )`. Also in quoted commands and arguments, after `--output="` and `if="`, history names, and mssh's own file options: `` `mssh -f zz<TAB> `` gave `zzs\$v`, so mssh got `-f zzs`, and now gives `zzs\\\$v`. TAB goes on into such a directory (`` `mssh h cat zzd<TAB>zz<TAB> `` for `zzd&x/zzin`), except in a quoted command, a double-quoted word holding an expansion, or after a quote at an `=` (fixed in 6.47).
|
|
1411
1439
|
- Fix (zsh): a backtick in single quotes, `$'...'` or after a backslash no longer counts as an open one: `` mssh h echo '`' zz<TAB> `` offers `zzs$v` again, as 6.44 did.
|
|
1412
|
-
- Fix (zsh): in a word holding a `/`, mssh's history names are offered beside the command's own names: with `sub/zzlocal` here and `cat sub/zzremote` in history, `mssh h cat sub/zz<TAB>` stays as typed, and `r<TAB>` gives `sub/zzremote`. Also in `cat "sub/zz`, `sort --output=sub/zz` and `~/.zz`. Not yet in a quoted command, a double-quoted word holding an expansion or after a quote at an `=`, where they are offered when the command offers nothing, as in 6.45 (6.47 offers them there beside file names).
|
|
1440
|
+
- Fix (zsh): in a word holding a `/`, mssh's history names are offered beside the command's own names: with `sub/zzlocal` here and `mssh h "cat sub/zzremote"` in history, `mssh h cat sub/zz<TAB>` stays as typed, and `r<TAB>` gives `sub/zzremote`. Also in `cat "sub/zz`, `sort --output=sub/zz` and `~/.zz`. Not yet in a quoted command, a double-quoted word holding an expansion or after a quote at an `=`, where they are offered when the command offers nothing, as in 6.45 (6.47 offers them there beside file names).
|
|
1413
1441
|
- Known (zsh, deferred to 6.47): inside `$(`, with `bang_hist` on (zsh's default), a double-quoted name holding `!` reaches mssh as `\!`: `$(mssh -f "zz<TAB>` for a file `zz!x` gives mssh `-f zz\!x`. On the line and inside backticks it reaches mssh as `zz!x`. 6.45 does the same, except after a quote at an `=` (`$(mssh h dd if="zz<TAB>`), where 6.45 dropped the quote and mssh got `if=zz!x` (fixed in 6.47).
|
|
1414
1442
|
- Known (zsh, deferred to 6.47): a value that the command's completion splits after a quote at an `=` loses the quote, as in 6.45: `mssh h make CFLAGS="-ggd<TAB>` gives `CFLAGS=-ggdb`. With a history name for it the quote stays, except for a value holding a `/` with a local name beside it (fixed in 6.47).
|
|
1415
1443
|
- Known (zsh, deferred to 6.47): in a double-quoted command holding `\"`, TAB puts the name after the typed word: `mssh h "grep \"a b\" zz<TAB>` gives `zzfilezz`, as in 6.45 and zsh's own `compset -q` (fixed in 6.47).
|
|
@@ -1453,7 +1481,7 @@ Run `mssh --completion install` again in bash (with or without ble.sh), zsh and
|
|
|
1453
1481
|
- Fix (bash 4.3, 4.4, 5.0): a Ctrl-C up to about 0.06 s after Ctrl-R left the terminal line by line until the next Enter, so Ctrl-U no longer cleared the line. The glue now puts the terminal's mode back.
|
|
1454
1482
|
- Fix (zsh): in a double-quoted word holding an expansion (`mssh h "rm $PWD/Outer<TAB>`), file names and mssh's history words now go in quoted for the double quote (`Outer\$Inner.class` reached the remote shell as `Outer.class`); `mssh -f "$PWD/zzp<TAB>` completes with the quote closed (6.42: `mssh -f /the/dir/zzp`); the filters for this shell's own functions and parameters apply to a command's name only, so a file here named `_comps`, or a word of a command's own completion such as `_git`, is offered.
|
|
1455
1483
|
- Fix (bash): `M-*` and `M-?` after a directory in a quote no longer show or insert a hidden second word; a directory beside names left out (those holding whitespace) leaves the quote open as one alone; bash-completion's doubled directory (bash 4.2 and 4.4) no longer closes the quote. A directory completed by `scp`, `rsync` or any other command with a bash-completion completion also leaves the quote open. With `set -o posix` turned on after the glue loaded, TAB on bash before 5.1 completes remote file names (it turns posix mode off for the call, which bash before 5.1 needs for the glue's `<( )`, and back on after it, with `POSIXLY_CORRECT` as it was, exported or not). A Ctrl-C that cuts such a TAB short leaves posix mode off, and `POSIXLY_CORRECT` unset, in two cases: on bash 4.2, whenever it comes (the query or a remote command's own completion), and on bash 4.3, 4.4 and 5.0, when it comes while a remote command's own completion has a child process running (4 of 4 tries on 4.3.48, 4.4.20, 4.4.23 and 5.0.18; a Ctrl-C during the query left it on there in 12 of 12 tries each). The next TAB on an mssh line, or Ctrl-R on any line, puts it back with `POSIXLY_CORRECT` as it was; a TAB on another command, Enter and a new prompt do not. On bash 5.1 and later the glue does not turn it off. On bash 3.2 (macOS's `/bin/bash`) the glue registers nothing and prints nothing.
|
|
1456
|
-
- Known limits (
|
|
1484
|
+
- Known limits (fixed in 6.49, but for the first moment after the key: see Upgrading to 6.49): on a `TMOUT` host, Ctrl-R on an mssh line and walking away stays logged in until Enter (bash before 5.2), and so does the line editor (`MSSH_COMPLETE_EDITOR=1`, bash 4.4 to 5.1); a Ctrl-C after Ctrl-R can lose the line's first letter (bash 4.3, 4.4, 5.0), and in a small window (about 0.4% of tries) leaves the terminal cooked; a Ctrl-C during TAB's query shows `^C` with no new prompt (bash 4.3 to 5.2): press Ctrl-C again, not Enter.
|
|
1457
1485
|
|
|
1458
1486
|
## Upgrading to 6.42 from 6.41
|
|
1459
1487
|
|
|
@@ -1470,7 +1498,7 @@ With zsh before 5.8 (zsh 5.5 is EL8's), run `mssh --completion install` again: t
|
|
|
1470
1498
|
- Known limits ([limitations](docs/limitations.md#found-in-642s-review)):
|
|
1471
1499
|
- ble.sh: in a quoted word, the second try finds nothing after a directory (`mssh h cat "sub/zzmp<TAB>`) or in a word holding a `$` expansion, a leading `~` or a quote of its own; type the start of the name ([limitations](docs/limitations.md#blesh-in-a-quoted-word-the-second-try-finds-nothing-after-a-directory-or-an-expansion)).
|
|
1472
1500
|
- zsh before 5.8 with zsh-autosuggestions in its asynchronous mode (its default): a Ctrl-C while typing an mssh line now and then still keeps the line, as the plugin's own processes hold the terminal for a moment; press Ctrl-C again ([limitations](docs/limitations.md#zsh-before-58-with-zsh-autosuggestions-async-mode-a-ctrl-c-now-and-then-keeps-the-line)).
|
|
1473
|
-
- 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 (
|
|
1501
|
+
- bash: in a window of microseconds at the end of the picker's start, the picker or the editor can still come up with nothing reading its answer; your choice is then not applied, so press Enter or Esc and try again (fixed in 6.49).
|
|
1474
1502
|
|
|
1475
1503
|
## Upgrading to 6.41 from 6.40
|
|
1476
1504
|
|
|
@@ -1481,7 +1509,7 @@ Run `mssh --completion install` again (bash, ble.sh, zsh and fish) to get the ne
|
|
|
1481
1509
|
- Fix (bash, ble.sh, zsh, fish): a local file name holding whitespace is no longer offered for a remote command typed as words: `mssh h cat my\ file` made mssh run `my file` as a command of its own. Whitespace is what mssh splits words on, a no-break space too. Type such a command in quotes. Where nothing else is left, TAB offers nothing, not the local file names; a command's completion that answers with nothing (git's and grub's empty word) gets nothing under ble.sh too, as under readline.
|
|
1482
1510
|
- Fix (bash, ble.sh, fish; zsh did so already): in a remote command typed in quotes, which mssh hands on whole, a local file name goes in quoted for the remote shell inside your quote: `mssh h 'cat a<TAB>` gives `'cat a\&b'` and `mssh h "cat a<TAB>` gives `"cat a\\&b"`, so the remote shell runs `cat` on `a&b` (6.40 gave `'cat a&b'`, and the remote shell ran `b`); a name holding whitespace goes in too (`'cat my\ file'`). In `$'...'` a name goes in with its backslashes and quotes escaped for it. The command typed before the word stays as typed, and so does a `$PWD/` or `~/` at the start of the word (`mssh h "ls $PWD/zzd<TAB>` gives `"ls $PWD/zzdir"`); a directory typed in the word is written as the remote shell's word (`mssh h "cat a&b/zz<TAB>` gives `"cat a\\&b/zzfile"`), and a word holding the remote shell's quoting completes (`mssh h "cat zz\\&a<TAB>`, as TAB itself writes it), with bash-completion loaded too; where the command's own completion offers nothing, the local file names come, as for a command typed as words. The command's first word goes in the same way (`mssh h "./my<TAB>` gives `"./my\\ script"`; 6.40 and the earlier 6.41 rounds wrote it as for a command typed as words); in a later part of the command (after a `;`) it comes from any local file, not only programs, and under ble.sh a first word naming a directory whose name changes for the remote shell gets no `/` (`mssh h "./zzd<TAB>` gives `"./zzd\\&x" `).
|
|
1483
1511
|
- With ble.sh on bash before 4.3, the names inside a directory whose name needs quoting for the remote shell (`mssh h cat a\\\&dir/<TAB>`) are not offered: ble.sh there quoted the typed part again ([limitations](docs/limitations.md#blesh-before-bash-43-names-inside-a-directory-that-changes-are-left-out)). ble.sh's own file names, quoted for this shell alone, are no longer offered for a remote command's word: `mssh h rm sub/zzb<TAB>` put in `sub/zzb{a,b}`, which this shell expanded to two names.
|
|
1484
|
-
- In zsh, a name typed with this shell's quoting alone (`mssh h cat a\&<TAB>`, which mssh would pass on as `a&`) no longer completes, nor one inside a directory typed bare in a quoted command (`mssh h "cat a&b/zz<TAB>`); bash replaces such a directory with the remote shell's word ([limitations](docs/limitations.md#zsh-a-directory-the-remote-shell-would-read-otherwise-gets-no-names)).
|
|
1512
|
+
- In zsh, a name typed with this shell's quoting alone (`mssh h cat a\&<TAB>`, which mssh would pass on as `a&`) no longer completes, nor one inside a directory typed bare in a quoted command (`mssh h "cat a&b/zz<TAB>`); bash replaces such a directory with the remote shell's word ([limitations](docs/limitations.md#zsh-and-blesh-a-directory-the-remote-shell-would-read-otherwise-gets-no-names)).
|
|
1485
1513
|
- Fix (ble.sh): a word that is only an unset variable (`mssh h rm $ZZNONE<TAB>`) gets nothing; ble.sh's own default put in the names the empty value matches, `rm \*` in an empty directory, so every host ran `rm *` (6.40 did the same).
|
|
1486
1514
|
- Fix (bash, ble.sh, zsh, fish): in a quoted argument of a command typed as words (`mssh h cat "zz<TAB>`), which mssh joins with the command's other words, the names come from the command's own completion, written for your quote and quoted for the remote shell, a word holding whitespace is left out, and history offers no whole command there: `"zz\\ a"` made mssh run `cat` and `zz\ a` as commands of their own, and `mssh h sudo 'sys<TAB>` gave `sudo 'systemctl restart nginx'`.
|
|
1487
1515
|
- Fix (ble.sh with bash-completion 2.12 or later): the names for the command after `sudo`, `nohup` or `time` complete as for the command itself (`mssh h sudo cat zza<TAB>` gave `zzamp\`, and `mssh h "sudo cat zza<TAB>` put `"zzamp&b"` in place of the whole command): ble.sh's bash-completion integration took them for its own word.
|