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

ExtUtils::CBuilder - print out commands being run in usable form #19701

Merged
merged 2 commits into from
Jun 8, 2022

Conversation

haarg
Copy link
Contributor

@haarg haarg commented May 9, 2022

When not set to be quiet, the system commands being run are printed out
before running them. This can assist with diagnosing issues. It is
implied that this is a command that could be run by a user.

Since the command is internally run with system using list form, it does not
involve the shell, and does not need any extra quoting. The printed out
command however, would be run by a user through a shell. Just joining
the arguments with spaces will not quote them correctly for use through
a shell.

Add a new method for quoting a string for the shell. And use this method
when printing out the command line that we are running.

@haarg haarg added the defer-next-dev This PR should not be merged yet, but await the next development cycle label May 9, 2022
haarg added 2 commits May 9, 2022 13:42
When not set to be quiet, the system commands being run are printed out
before running them. This can assist with diagnosing issues. It is
implied that this is a command that could be run by a user.

Since the command is internally run with system using list form, it does not
involve the shell, and does not need any extra quoting. The printed out
command however, would be run by a user through a shell. Just joining
the arguments with spaces will not quote them correctly for use through
a shell.

Add a new method for quoting a string for the shell. And use this method
when printing out the command line that we are running.
@haarg haarg force-pushed the haarg/eucb-print-real-commands branch from 38ccff3 to b864688 Compare May 9, 2022 11:42
Copy link
Contributor

@khwilliamson khwilliamson left a comment

Choose a reason for hiding this comment

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

lgtm

@haarg haarg removed the defer-next-dev This PR should not be merged yet, but await the next development cycle label Jun 8, 2022
@haarg haarg merged commit 0195a59 into blead Jun 8, 2022
@haarg haarg deleted the haarg/eucb-print-real-commands branch June 8, 2022 10:38
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.

None yet

2 participants