/bin/bash: ssh: command not found when exec in corgi
AnsonT opened this issue · comments
AnsonT commented
Running on OSX/Bash
Saved an ssh command line in corgi, failed when using the command via corgi exec with this error
/bin/bash: ssh: command not found
other bash commands appear to work: python3, ls, echo.
which ssh
/usr/bin/ssh
(command line ssh works)
Junyu Wang commented
corgi under the hood executes each step as $SHELL -c "<your command>"
, can you check what is your SHELL
set to and does ssh
work with it?
AnsonT commented
declare -x SHELL="/bin/bash"
$SHELL -c "ssh" runs properly
AnsonT commented
Found the issue, a unicode character was somehow added to the start of the command.