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

Functions are not available in shell when run in source #54

Closed
ZNackasha-intrepid opened this issue Feb 23, 2018 · 1 comment
Closed

Comments

@ZNackasha-intrepid
Copy link

My current project requiters me to compile android. to accomplish this I will need to run the following command.

source envsetup.sh

The envsetup.sh file can be retrieved from the platform build repo

once this command is ran multiple functions defined in the shell scrip should become available to the user in the shell. this include the mmm function

running the following should achieve the same thing. but i understand why it does not.

bass source envsetup.sh

I tried running

source bass source envsetup.sh

but i get the following error

source: Error encountered while sourcing file "bass":
source: No such file or directory

Is there a way around this,?

@edc
Copy link
Owner

edc commented Mar 18, 2018

@ZNackasha-intrepid Have you tried bass source envsetup.sh ';' mmm? This is how we get nvm to work with Bass. If it works, then you can create a fish function to invoke that so you don't have to type that long command.

> funced mmm
mmm> function mmm
           bass source envsetup.sh ';' mmm
       end

@edc edc closed this as completed Jul 20, 2018
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

2 participants