Bash 3.2.57(1)-release "conditional binary operator expected"
nebularix opened this issue · comments
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
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'
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.)