-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Context:
Hello, I'm trying to install this library through pip in Termux.
Problem:
The which_shell function in setup.py points to /bin/sh, which is Dash, and Dash is incompatible with build.sh in rl, which relies on Bash features. Also, it is very hard to change /bin/sh to point to Bash instead of Dash.
Solution #1:
Change build.sh to be compatible with Dash. I rather Solution #2, below:
Solution #2:
Before trying to find the Bash file from the addresses /bin/bash, /usr/bin/bash and /usr/sh as is now, try to issue the command which bash, which should woirk by default in most Unix distributions and should work in Termux after running pkg install which (tested here). Bonus points: this should handle other use cases where Bash can't be found in the traditional spots.