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

Don't hardcode /bin/sh #24

Closed
mcandre opened this issue Oct 19, 2013 · 2 comments
Closed

Don't hardcode /bin/sh #24

mcandre opened this issue Oct 19, 2013 · 2 comments

Comments

@mcandre
Copy link

mcandre commented Oct 19, 2013

I'm running Emacs on my Android phone, where sh is in /system/bin/, not /bin/. Could we tweak fiplr to look for sh on the PATH rather than in a specific directory?

@d11wtq
Copy link
Contributor

d11wtq commented Oct 19, 2013

/bin/sh isn't hard-coded anywhere in fiplr. I'm not sure how you're running into this. I use shell-command-to-string, but I just leave Emacs to figure out which shell to use. It gets that from the shell-file-name variable, apparently, so you may need to set that.

@d11wtq d11wtq closed this as completed Oct 19, 2013
@mcandre
Copy link
Author

mcandre commented Oct 19, 2013

shell-command-to-string passes shell-file-name to process-file. shell-file-name is /bin/sh on my phone.

According to Manuel GNU Emacs, shell-file-name is initialized based on the SHELL environment variable.

In bash, SHELL is set to /system/bin/sh.

When I try to M-x getenv RET SHELL RET, Emacs says it's nil.

I'll ask the Emacs for Android team to assist.

zielmicha/emacs-android#24

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