Android emacs: How to deal with Shebang in doom scripts?
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
### I confirm that...
- [X] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.
- [X] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.
- [X] The issue can be reproduced on the **latest** available commit of Doom.
- [X] The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. *(Unstable versions end in .50, .60, or .9x)*
### Expected behavior
It has recently become possible to use doomemacs in Android emacs: https://www.reddit.com/r/emacs/comments/1aif4wy/use_doomemacs_on_android/
A stumbling block is that Android does not recognize /usr/bin/env in script Shebang.
There is an env command in Termux, but the path to env from Android emacs does not start with "/usr/bin".
So I change the Shebang to "#!/system/bin/sh", which of course is not portable. But if I modify anything in
~/.config/emacs then I can not run "doom upgrade".
So can we perhaps in doom/bin have a parallel set of scripts, for Android emacs, with just the Shebang changed to
"#!/system/bin/sh". Or is there a better mechanism?
I am of course willing to help, and can make a pull request, or whatever, but perhaps someone has a better idea?
### Current behavior
The doom script out of the box, fails to run because /usr/bin/env is not found.
### Steps to reproduce
Start Android emacs. Try to execute the unmodified doom script.
### System Information
https://pastebin.com/qynKKPfL
Contributor guide
Assessment
This issue has not been assessed yet.