junyu-w / corgi

Corgi is a command-line workflow manager that helps with your repetitive command usages by organizing them into reusable snippet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/bin/bash: ssh: command not found when exec in corgi

AnsonT opened this issue · comments

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)

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?

declare -x SHELL="/bin/bash"
$SHELL -c "ssh" runs properly

Found the issue, a unicode character was somehow added to the start of the command.