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

ShellJob: Raise when < or > are specified in arguments #28

Merged
merged 1 commit into from
Nov 11, 2022

Conversation

sphuber
Copy link
Owner

@sphuber sphuber commented Nov 11, 2022

Fixes #23

Stdout redirection is performed automatically by the ShellJob and the metadata.options.filename_stdin input should be used to redirect a particular file to stdin. Attempting to perform these redirections "manually" through the arguments input will fail as the symbols will be quoted and so interpreted as a literal command line argument.

To prevent users making this mistake, a validator is added for the arguments input that validates that all elements are strings and that the reserved symbols are not defined.

Stdout redirection is performed automatically by the `ShellJob` and
the `metadata.options.filename_stdin` input should be used to redirect a
particular file to stdin. Attempting to perform these redirections
"manually" through the `arguments` input will fail as the symbols will
be quoted and so interpreted as a literal command line argument.

To prevent users making this mistake, a validator is added for the
`arguments` input that validates that all elements are strings and that
the reserved symbols are not defined.
@sphuber sphuber force-pushed the fix/023/validate-arguments-redirect-symbols branch from 2fd43f7 to 96e4357 Compare November 11, 2022 11:34
@sphuber sphuber merged commit 5f42f0a into master Nov 11, 2022
@sphuber sphuber deleted the fix/023/validate-arguments-redirect-symbols branch November 11, 2022 11:39
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.

Contents of arguments argument to launch_shell_job are not validated
1 participant