c1 || c2 || c3 || ... , . .
, :
[[ $OSTYPE == *@(darwin|freebsd|solaris|cygwin|openbsd)* ]] \
|| _userland GNU \
|| return 1
OSTYPE darwin, freebsd .., . , , man bash, . :
@(pattern-list)
Matches one of the given patterns
|. * @(...) , OSTYPE. @(...) , @(...)* , *@(...) .
OSTYPE , : _userland GNU. . , return 1, .
_userland :
local userland=$( uname -s ): uname -s userland[[ $userland == @(Linux|GNU/*) ]] && userland=GNU: Linux GNU/, userland=GNU[[ $userland == $1 ]]: . - . , .