Skip to content

shebang macos #27

@dracorp

Description

@dracorp

On macos with default bash:

$ /bin/bash --version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin25)
Copyright (C) 2007 Free Software Foundation, Inc.

$ ./git-identity
./git-identity: line 394: unexpected EOF while looking for matching `"'
./git-identity: line 396: syntax error: unexpected end of file

It works with bash from brew:

$ /opt/homebrew/bin/bash --version
GNU bash, version 5.3.9(1)-release (aarch64-apple-darwin25.1.0)

So for me better shebang is:

#!/usr/bin/env bash

then works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions