by sirn · 8y ago · 0 comments
> The /bin/sh stuff is due to Ubuntu symlinking dash to /bin/sh and that reacting badly with both the R shell wrapper and some Microsoft R Server features. I believe we fixed the R shell wrapper features last release by explicitly requesting bash and we will be fixing the R server features next release. 3.3.3 should be updated with these fixes.
[1]: https://github.com/Microsoft/microsoft-r-open/issues/20
Which is understandable considering the switch from bash to dash as the default shell has tripped up even open source software.
> I believe we fixed the R shell wrapper features last release by explicitly requesting bash and we will be fixing the R server features next release.
So #!/bin/bash?
Doesn't seem like this was a big deal. Just an oversight fixed quickly.
The fix should have been the simple and obvious one - apply a patch that fixes the application (in this case, literally just fixing the first line of the script).
#!/usr/bin/env bashFurther, for the purpose of a distribution package, "#!/usr/bin/env bash" is wrong, as it'll prefer /usr/local/bin/bash which could be anything. Since the distribution package uses real package dependencies to express what it needs, it'd be wrong for it to use anything in /usr/local.