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

fix: quote echo run args #2976

Closed

Conversation

nichmor
Copy link
Contributor

@nichmor nichmor commented Jan 21, 2025

Fixes #2972

@@ -116,7 +116,7 @@ impl Task {
/// Returns the command to execute as a single string.
pub fn as_single_command(&self) -> Option<Cow<str>> {
match self {
Task::Plain(str) => Some(Cow::Borrowed(str)),
Task::Plain(str) => Some(Cow::Owned(str.split(" ").map(|t| quote(t)).join(" "))),
Copy link
Contributor

Choose a reason for hiding this comment

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

This change worries me, as in what consequences it has. Does this not break things like this?:

task = "echo 'hello there'"

@ruben-arts ruben-arts enabled auto-merge (squash) January 22, 2025 16:01
@ruben-arts ruben-arts disabled auto-merge January 22, 2025 16:01
@nichmor
Copy link
Contributor Author

nichmor commented Jan 29, 2025

temporary closing as I don't have enough time this week to investigate it more deeply.

please feel free to take over if someone wants to

@nichmor nichmor closed this Jan 29, 2025
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.

pixi run fails when inner command contains ~
2 participants