You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suspect you have your PATH configured improperly; I can't imagine that it wouldn't respect PATH, since not only is it part of the spec, it's crucial to executing anything ever. When we fixed issue #21854, we ran the "checkbashisms" script to be sure we weren't accidentally doing anything wrong, and it came up clean, indicating that we weren't relying on any bash-specific in these scripts anymore.
That does sound like PATH is set incorrectly. If you want to use Dash as your default shell, you shouldn't put Dash-incompatible stuff in the environment variables it reads.
This issue was originally filed by [email protected]
For example, the following script generated for csp_fixer fails to run on linux mint, as 'sh' is really dash, and a really restricted shell
!/usr/bin/env sh
This file was created by pub v1.8.5.
Package: csp_fixer
Version: 0.1.3
Executable: csp_fixer
Script: csp_fixer
dart "/home/daniel/.pub-cache/global_packages/csp_fixer/bin/csp_fixer.dart.snapshot" "$@"
csp_fixer some/path
fails with "dart not found"
but bash has PATH properly set up, and dart can be run from the shell prompt
PATH is not being forwarded to sh, or sh on Mint ( which is supplied by dash ) doesn't properly support it.
Some method should be provided to change the shell used, or perhaps a more universal option found.
cf bug dart-archive/pub-dartlang#271
The text was updated successfully, but these errors were encountered: