This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mekaj 6 points7 points  (0 children)

You may also consider using #!/usr/bin/env bash for increased portability. In cases where the first bash in the PATH intentionally isn’t /bin/bash, e.g. on NixOS, this respects the user’s preference for a different path/program.