We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8783ada commit 7e80461Copy full SHA for 7e80461
config/thisroot.sh
@@ -194,7 +194,8 @@ getTrueShellExeName() { # mklement0 https://stackoverflow.com/a/23011530/7471760
194
# on MacOS, sh is NOT a symlink but an executable, so trueExe is 'sh' but it will
195
# re-exec according to symlink at /private/var/select/sh, so resolve it
196
if [ -L "/private/var/select/sh" ] && [ -e "/private/var/select/sh" ] ; then
197
- while nextTarget=$(readlink "/private/var/select/sh"); do trueExe=$nextTarget; done
+ trueExe="/private/var/select/sh";
198
+ while nextTarget=$(readlink "$trueExe"); do trueExe=$nextTarget; done
199
else
200
# otherwise default to bash
201
trueExe="/bin/bash"
0 commit comments