'sh' environment does not respect the PATH extensions, user's local PATH not in effect?
问题 $ bl 1 $ sh -c 'bl 1' sh: bl: command not found The bl script is located in the user's PATH extension ( /home/user/.local/bin ) but the sh environment does not seem to be aware of it, the bash is. The main /usr/bin/sh executable symlinks to /usr/bin/bash . Placing a symlink in /usr/local/bin pointing to the local bl script does seem to fix the issue. Expanding the PATH manually $ PATH=/usr/bin:$HOME/.local/bin sh -c 'bl 1' also solves it, something I don't really understand since both the