Skip to content

dmd-script: Expand @rsp arguments in-place in ARGV #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

the-horo
Copy link
Contributor

When expanding response files place the extracted arguments in the same spot that the response argument appeared on, in the ARGV array, instead of appending them at the end.

Specifically make gdmd @args -foo expand to gdmd -arg1 -arg2 -foo, not gdmd -foo -arg1 -arg2.

This is especially problematic with then -run flag since gdmd @args -run file will map to gdmd -run file -arg1 -arg2 which no longer passes -arg1 -arg2 to gdc, but to the compiled program.

When expanding response files place the extracted arguments in the
same spot that the response argument appeared on, in the ARGV array,
instead of appending them at the end.

Specifically make `gdmd @Args -foo` expand to `gdmd -arg1 -arg2 -foo`,
not `gdmd -foo -arg1 -arg2`.

This is especially problematic with then `-run` flag since `gdmd @Args
-run file` will map to `gdmd -run file -arg1 -arg2` which no longer
passes `-arg1 -arg2` to gdc, but to the compiled program.

Signed-off-by: Andrei Horodniceanu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant