Skip to content
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

runguard: Allow passing -V multiple times. #2804

Merged
merged 1 commit into from
Nov 17, 2024
Merged

Conversation

meisterT
Copy link
Member

The previous behavior was that the last arg wins. IMHO, this is confusing and we even fell into this trap ourselves in https://github.com/DOMjudge/domjudge/blame/main/judge/compile.sh#L145 where we would shadow any previously passed env var (such as the entry point).

Copy link
Member

@eldering eldering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, makes writing scripts to call this easier (even when using bash).

judge/runguard.cc Outdated Show resolved Hide resolved
judge/runguard.cc Outdated Show resolved Hide resolved
judge/runguard.cc Outdated Show resolved Hide resolved
The previous behavior was that the last arg wins. IMHO, this is
confusing and we even fell into this trap ourselves in
https://github.com/DOMjudge/domjudge/blame/main/judge/compile.sh#L145
where we would shadow any previously passed env var (such as the entry
point).
@meisterT meisterT added this pull request to the merge queue Nov 17, 2024
Merged via the queue into DOMjudge:main with commit 499c521 Nov 17, 2024
28 checks passed
@meisterT meisterT deleted the rgmulit branch November 17, 2024 14:02
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.

2 participants