Syntax error in /usr/lib/initcpio/functions
Created by: Strahinja
Currently, the file functions
in the root of the repository gives an error when that file is sourced:
bash-5.1.16$ source /usr/lib/initcpio/functions
bash: /usr/lib/initcpio/functions: line 682: syntax error near unexpected token `('
bash: /usr/lib/initcpio/functions: line 682: ` RUN@({program}|+)|IMPORT{program}|ENV{REMOVE_CMD})'
It seems that a case pattern contains parentheses, which is unsupported in shell pattern matching and produces an error. I suggest expanding the condition as follows:
RUN{program}|RUN+|IMPORT{program}|ENV{REMOVE_CMD})
Edit: If the intent was to use extglob
-dependent @()
construct, then extglob
should be explicitly set, at least during the execution of add_udev_rule
. However, that wouldn't respect user's choice for the option.
Edited by nl6720