Skip to content

Dont use #!/bin/bash #5692

@jan-leila

Description

@jan-leila

Role

On linux

Suggestion

Use the more portable #!/usr/bin/env bash instead of bin bash

Benefit

This will allow the usage of bash compatable shells on systems that dont have bash itself installed

This suggestion is unique

  • I have searched the issue tracker and did not find an issue describing my suggestion, especially not one that has been rejected.

You may use the editor below to elaborate further.

More reading can be found in this stack overflow thread if you want: https://unix.stackexchange.com/questions/632053/how-to-get-bin-bash-on-nixos

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions