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

"At the moment, Bass does not work with interactive utilities." #14

Closed
shawnbon206 opened this issue Oct 20, 2015 · 7 comments
Closed

Comments

@shawnbon206
Copy link

I wish to compile android using fish, the only thing stopping me is envsetup.sh, which has some interactive parts.

@ghost
Copy link

ghost commented Apr 15, 2016

@shawnbon206 Were you able to figure something out?

@zaclimon
Copy link

If somebody is interested I've made a bash script in which it is possible to compile Android with Fish.

Here's the link:

https://github.com/zaclimon/Personnal-Stuff/blob/master/scripts/apbs

Don't hesitate if you have some potential ideas for it.

@ghost
Copy link

ghost commented Jul 24, 2016

@zaclimon Looks terrific! Good job :)

@mnewt
Copy link

mnewt commented May 19, 2017

I run bash scripts that prompt for information. One example is when I log in, I have a script (sourced using bass) that starts ssh-agent and runs ssh-add. ssh-add prompts for my password. The script prints out during execution and prompts successfully. Everything works great in this scenario.

This seems to indicate that bass does work with interactive utilities. Was functionality added or is that not what you're referring to?

@zaclimon
Copy link

It does work with some utilities as your case doesn't show any problems.

However, the Android build script (envsetup.sh) is kinda a sneaky one. I don't know how to say it as I might be wrong in terminologies but from what I see, it does depend on some Bash specific stuff in order to work. (It also has some difficulties with other shells like zsh if I remember correctly)

In this regard, it is not something that native Fish nor Bass can do yet. (Which is the reason I made the script specified above)

@shawnbon206
Copy link
Author

I closed this issue, zaclimon ported the build script and I'm not using bass anymore. But this issue was mentioned in the bass README.md so someone may want to reopen it later if they come up with a more constructive example of this issue.

@edc
Copy link
Owner

edc commented May 24, 2017

I've updated the README to make it clearer that Bass may or may not work with interactive utilities. It depends on how the utility is written. Typically if the utility writes its prompt to stderr, it should work; if it writes to stdout, the prompt is eaten by Bass and it will be weird.

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

No branches or pull requests

4 participants