Skip to content

Expand @() as it fails when extglob is not set

Kristian Klausen requested to merge github/fork/Strahinja/master into master

Created by: Strahinja

Currently, as per #102 (closed), sourcing /usr/lib/initcpio/functions when extglob is not set in Bash produces an error. This PR expands the case pattern so @() extended pattern is not used.

The alternative would be to force shopt -s extglob at the top of the file, but that wouldn't respect user's choice for this option.

Merge request reports