Bug: non-portable use of #!/bin/bash
shebang line breaks builds on FreeBSD/OpenBSD.
#328
Closed
4 tasks done
Labels
P3
We're not considering to work on this, but happy to review a PR. (No assignee)
type: feature request
The binary for GNU Bash is located at different locations on different operating systems and is largely dependent on the package maintainers. For example:
The use of
#!/bin/bash
in the shebang line for shell scripts is non-portable and may require a lot of selective patching for Bazel to build successfully on multiple operating systems if done on a case by case basis. Fortunately, there appears to be a portable workaround if one is acceptable. Please consider using:#!/usr/bin/env bash
instead of#!/bin/bash
in the shebang line.The text was updated successfully, but these errors were encountered: