···19# the environment
20# --unset VAR : remove VAR from the environment
21# --run COMMAND : run command before the executable
22-# The command can push extra flags to a magic list
23-# variable extraFlagsArray, which are then added to
24-# the invocation of the executable
25# --add-flags FLAGS : add FLAGS to invocation of executable
2627# --prefix ENV SEP VAL : suffix/prefix ENV with VAL, separated by SEP
···109 fi
110 done
111112- # Note: extraFlagsArray is an array containing additional flags
113- # that may be set by --run actions.
114- # Silence warning about unexpanded extraFlagsArray:
115- # shellcheck disable=SC2016
116 echo exec ${argv0:+-a \"$argv0\"} \""$original"\" \
117- "$flagsBefore" '"${extraFlagsArray[@]}"' '"$@"' >> "$wrapper"
118119 chmod +x "$wrapper"
120}
···19# the environment
20# --unset VAR : remove VAR from the environment
21# --run COMMAND : run command before the executable
00022# --add-flags FLAGS : add FLAGS to invocation of executable
2324# --prefix ENV SEP VAL : suffix/prefix ENV with VAL, separated by SEP
···106 fi
107 done
1080000109 echo exec ${argv0:+-a \"$argv0\"} \""$original"\" \
110+ "$flagsBefore" '"$@"' >> "$wrapper"
111112 chmod +x "$wrapper"
113}