machine add fails against tcsh login shells (tcsh syntax errors, hangs)
Is this a reproducible bug?
- I confirm this is a reproducible bug, not a feature request, idea, question, contribution proposal, or direction check.
- I reproduced this bug on the version and environment reported below using the exact steps provided.
Current behavior
herdr machine add <target> --label <label> fails when the remote account's login shell is tcsh instead of a POSIX shell. Plain interactive ssh <target> to the same account succeeds normally.
Observed output (repeated across the several connections machine add opens):
Unmatched '''.
No job control in this shell.
Unmatched '''.
command: Command not found.These are tcsh's own error messages (unmatched-quote parse error, the standard non-interactive job-control warning, and a failed command lookup), not bash/sh errors. After they print, herdr machine add does not exit; it appears to hang with no further visible output or prompt.
This worked previously against the same target/account on an earlier herdr version and started failing after upgrading to 0.9.1.
Expected behavior
herdr machine add should succeed against a remote account whose login shell is tcsh (or csh), the same way plain ssh <target> does, and should not print raw remote-shell syntax errors or hang.
Reproduction
- Have an SSH target whose account's login shell is tcsh (verify with
ssh <target> 'echo $SHELL'). - Confirm plain interactive access works:
ssh <target>logs in normally. - From a Herdr client, run:
herdr machine add <target> --label <label> - Observe repeated
Unmatched '''./No job control in this shell./command: Command not found.output, and the command not completing.
Impact
herdr machine add cannot be used at all against remote accounts whose login shell is tcsh, blocking multi-machine setup for those accounts even though normal SSH access works fine.
Environment
- Herdr version: 0.9.1
- Update channel (stable or preview): stable
- Operating system: Windows (client), Linux (remote target)
- Terminal: PowerShell
- Shell, if relevant: tcsh on the remote target
- Relevant config, if any: remote SSH server also prints a login banner/MOTD on every connection; confirmed unrelated to the failure by reproducing the same tcsh errors independent of herdr
Source: herdrdev/herdr