makeWrapper: child process inherits argv[0]

This commit is contained in:
Thomas Tuegel 2015-08-20 18:28:31 -05:00
parent 90a72bd177
commit c234f37b59

View File

@ -72,8 +72,8 @@ makeWrapper() {
# Note: extraFlagsArray is an array containing additional flags
# that may be set by --run actions.
echo exec "$original" $flagsBefore '"${extraFlagsArray[@]}"' '"$@"' >> $wrapper
echo exec -a '"$0"' "$original" $flagsBefore '"${extraFlagsArray[@]}"' '"$@"' >> $wrapper
chmod +x $wrapper
}