Repository navigation
Commit bb47979
RCommand: fix bash-over-ssh's duplicate command echo with --noediting (real fix for issue #64)
Root cause, finally isolated correctly: a *previous* attempt at this
fix (bracketed-paste mode aside, which was a real, separate, already-
fixed bug) modified the wrong code path -- it touched echoshell,
which only affects the same-domain "local shell" exp_spawnv()
shortcut (used when the target machine name matches this host's own
hostname, e.g. niobium), not the real-ssh path (used for anything
else, e.g. localhost) where the bug actually lives. Confirmed directly
side by side: the identical long-command echo test never reproduces
the duplicate over the local-shell shortcut, 100% of the time over
real ssh.
The actual remote invocation for a real ssh connection is built
separately (a fixed argv array ending in "-i", not the echoshell
string), and was never touched by the earlier attempt. Disabling
readline there (bash's actual flag: --noediting) is the real fix --
confirmed via 10/10 repeated live runs over a real ssh connection, each
now completing a full ~20KB simulated eccejobmonitor stream cleanly
(previously 100% failure, truncated after the very first read).
One wrinkle found empirically: bash requires GNU long options before
short options in the same invocation ("bash -i --noediting" errors
with "--: invalid option"; "bash --noediting -i" is the working form) --
confirmed directly before landing the fix.
Regression-tested: fileOp/cd/execbg all still pass over the same
connection with this change.
This should make the launcher's new "Use csh/tcsh" checkbox (added
minutes earlier as a stopgap, before this fix was found) unnecessary
for its original purpose, though it's harmless to leave in place as a
troubleshooting toggle.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 5e26797 commit bb47979
1 file changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
383 | 404 | | |
384 | 405 | | |
385 | 406 | | |
| |||
0 commit comments