Open rob-smallshire opened 3 years ago
The code in _sub_shell_command depends on knowing which type of shell is in use. In the presence of symbolic links like /bin/sh it can be tricky to find the ultimate shell executable. Consider using the shell function from this answer to locate the actual shell executable: https://stackoverflow.com/questions/23011370/how-to-recognize-whether-bash-or-dash-is-being-used-within-a-script
_sub_shell_command
/bin/sh
The code in
_sub_shell_command
depends on knowing which type of shell is in use. In the presence of symbolic links like/bin/sh
it can be tricky to find the ultimate shell executable. Consider using the shell function from this answer to locate the actual shell executable: https://stackoverflow.com/questions/23011370/how-to-recognize-whether-bash-or-dash-is-being-used-within-a-script