Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Ash #107

Open
carolynvs opened this issue May 16, 2016 · 3 comments
Open

Support Ash #107

carolynvs opened this issue May 16, 2016 · 3 comments

Comments

@carolynvs
Copy link
Collaborator

I use Ash, it seems here -f is an illegal option: -sh: export: line 51: illegal option -f Can we introduce a check to support Ash? via @zs-zs

@smashwilson
Copy link
Contributor

👀

@ibigbug
Copy link
Collaborator

ibigbug commented May 16, 2016

image

Testing under Ash reported this error.

Although I'm not familiar with Ash, I think if has several differences from bash/zsh.

@zs-zs
Copy link

zs-zs commented May 16, 2016

Hi, I saw that you created an issue based on my comment, thanks for that!
@ibigbug Yes, this happens when you run the script as it is. I think I already reported this issue both here and on the Carina forums. As a workaround I found it out if I run this preprocessing statement before I execute the script, it works:

sed -i -e 's/\${BASH_SOURCE\[0\]}/\$0/g' /home/docker/.dvm/dvm.sh

But now I have to introduce another replacement which is a bit silly, that's why I made the comment. :)

PS.: I'm also not very familiar with Ash, but this is what I have currently. Maybe there is a smarter solution I just don't know about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants