-
Notifications
You must be signed in to change notification settings - Fork 71
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
Comments
@shawnbon206 Were you able to figure something out? |
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. |
@zaclimon Looks terrific! Good job :) |
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? |
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) |
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. |
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. |
I wish to compile android using fish, the only thing stopping me is envsetup.sh, which has some interactive parts.
The text was updated successfully, but these errors were encountered: