Skip to content

[BUG] oieserver.sh fails on OS X #198

Closed

Description

@mgaffigan

Running ./oieserver in server/setup after build yields the error below on Apple bash:

mgaffigan@mbp setup % ./oieserver 
./oieserver: line 102: conditional binary operator expected
./oieserver: line 102: syntax error near `"$var_name"'
./oieserver: line 102: `        if [[ -v "$var_name" ]]; then'
mgaffigan@mbp setup %

Activity

  1. kpalang commented on Nov 3, 2025

    @kpalang
    Contributor

    What version of bash do you have installed?

  2. mgaffigan commented on Nov 3, 2025

    @mgaffigan
    ContributorAuthor
    mgaffigan@mbp ~ % bash --version
    GNU bash, version 3.2.57(1)-release (arm64-apple-darwin25)
    Copyright (C) 2007 Free Software Foundation, Inc.
    

    Why does Apple ship bash 3.2?

  3. kpalang commented on Nov 4, 2025

    @kpalang
    Contributor

    I've approved #199

    For future reference, the approach used before this PR works starting with Bash 4.2, but MacOS ships with Bash 3.2.

  4. gibson9583 commented on Nov 4, 2025

    @gibson9583
    Contributor

    Fun - I hadn't noticed this on Mac since I've been using zsh instead

  5. added this to the Next Release milestone on Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions