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.
Context:
Hello, I'm trying to install this library through
pipin Termux.Problem:
The
which_shellfunction insetup.pypoints to/bin/sh, which is Dash, and Dash is incompatible withbuild.shinrl, which relies on Bash features. Also, it is very hard to change/bin/shto point to Bash instead of Dash.Solution #1:
Change
build.shto 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/bashand/usr/shas is now, try to issue the commandwhich bash, which should woirk by default in most Unix distributions and should work in Termux after runningpkg install which(tested here). Bonus points: this should handle other use cases where Bash can't be found in the traditional spots.