mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
makeWrapper: child process inherits argv[0]
This commit is contained in:
parent
90a72bd177
commit
c234f37b59
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue