Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Fix unexpected operator build error on POSIX shells#768

Merged
knopers8 merged 1 commit intoAliceO2Group:masterAliceO2Group/Control:masterfrom
knopers8:fix-unexpected-operatorknopers8/Control:fix-unexpected-operatorCopy head branch name to clipboard
Nov 3, 2025
Merged

Fix unexpected operator build error on POSIX shells#768
knopers8 merged 1 commit intoAliceO2Group:masterAliceO2Group/Control:masterfrom
knopers8:fix-unexpected-operatorknopers8/Control:fix-unexpected-operatorCopy head branch name to clipboard

Conversation

@knopers8
Copy link
Collaborator

@knopers8 knopers8 commented Nov 3, 2025

'==' comparison operator is only supported by Bash, while '=' is supported by both Bash and standard POSIX shells.

'==' comparison operator is only supported by Bash, while '=' is supported by both Bash and standard POSIX shells.
@knopers8 knopers8 requested a review from justonedev1 as a code owner November 3, 2025 08:44
@knopers8
Copy link
Collaborator Author

knopers8 commented Nov 3, 2025

for the reference, this is what the error looks like:

$ make
-e go build -mod=vendor ./cmd/o2-aliecs-core  ==>  ./bin/o2-aliecs-core
/bin/sh: 1: [: o2-aliecs-core: unexpected operator
-e go build -mod=vendor ./cmd/o2-aliecs-executor  ==>  ./bin/o2-aliecs-executor
/bin/sh: 1: [: o2-aliecs-executor: unexpected operator
-e go build -mod=vendor ./cmd/coconut  ==>  ./bin/coconut
/bin/sh: 1: [: coconut: unexpected operator
-e go build -mod=vendor ./cmd/peanut  ==>  ./bin/peanut
/bin/sh: 1: [: peanut: unexpected operator
-e go build -mod=vendor ./cmd/o2-apricot  ==>  ./bin/o2-apricot
/bin/sh: 1: [: o2-apricot: unexpected operator

the build succeeds anyway, but the errors are confusing.

@knopers8 knopers8 merged commit 6a97d97 into AliceO2Group:master Nov 3, 2025
3 checks passed
@knopers8 knopers8 deleted the fix-unexpected-operator branch November 3, 2025 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.