Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Bash 3.2.57(1)-release "conditional binary operator expected" #2445

Open
1 task done
nebularix opened this issue Feb 26, 2024 · 1 comment
Open
1 task done

Bash 3.2.57(1)-release "conditional binary operator expected" #2445

nebularix opened this issue Feb 26, 2024 · 1 comment

Comments

@nebularix
Copy link

nebularix commented Feb 26, 2024

Description

Running neofetch under Bash 3.2.57 results in "conditional binary operator expected" (line 1359 in 7.1.0 release: [[ $os =~ (AIX|IRIX) ]] && return'
(If this is expected behavior under Bash 3.2 then what is the correct minimum Bash version?)

PLATFORM INFO: SunOS 4.1.4 SPARC sun4

  • Does this issue still occur in the master branch? (Required if issue)

Neofetch version

7.1.0 or master branch

Screenshot

(master branch)
neofetch

Config file

(default)

Verbose log

./neofetch: line 1396: conditional binary operator expected
./neofetch: line 1396: syntax error near `=~'
./neofetch: line 1396: `	[[ $os =~ (AIX|IRIX) ]] && return'
@ParzivalWolfram
Copy link

There seems to be no defined minimum version, but Bash 4.0-alpha contains the following release note:

b.  Fixed problems parsing arguments to the [[ command's =~ regular expression
    matching operator:  metacharacter and whitespace parsing.

You may wish to compile bash 4.x and see if the issue continues. I have confirmed neofetch works on bash 4.4 under Solaris 7, Intel Edition (though some lines aren't fetched correctly and the terminal is left in a corrupted state afterwards.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants