Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

When pub creates executable script, it doesn't work on Linux Mint / Ubuntu due to use of sh #271

Open
DanielJoyce opened this issue Feb 19, 2015 · 2 comments

Comments

@DanielJoyce
Copy link

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.

@zoechi
Copy link

zoechi commented Feb 19, 2015

Seems similar to http://dartbug.com/21854

@sethladd
Copy link
Contributor

Can you please open a new bug on dartbug.com/new ? Thanks!

Then, paste your new bug number here.

(this is the issue track for the pub.dartlang.org site)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants