···1919# the environment
2020# --unset VAR : remove VAR from the environment
2121# --run COMMAND : run command before the executable
2222-# The command can push extra flags to a magic list
2323-# variable extraFlagsArray, which are then added to
2424-# the invocation of the executable
2522# --add-flags FLAGS : add FLAGS to invocation of executable
26232724# --prefix ENV SEP VAL : suffix/prefix ENV with VAL, separated by SEP
···109106 fi
110107 done
111108112112- # Note: extraFlagsArray is an array containing additional flags
113113- # that may be set by --run actions.
114114- # Silence warning about unexpanded extraFlagsArray:
115115- # shellcheck disable=SC2016
116109 echo exec ${argv0:+-a \"$argv0\"} \""$original"\" \
117117- "$flagsBefore" '"${extraFlagsArray[@]}"' '"$@"' >> "$wrapper"
110110+ "$flagsBefore" '"$@"' >> "$wrapper"
118111119112 chmod +x "$wrapper"
120113}