Skip to content

Conversation

@akramcodez
Copy link

Currently, escapeShellArg returns an empty string for empty inputs, causing the argument to be lost in shell commands. This PR fixes the issue by returning properly quoted empty strings ('' for bash/powershell, "" for cmd) to preserve the argument.

Changes:

  • Updated escapeShellArg to return quoted empty strings based on shell type
  • Updated test expectations to verify empty strings are properly quoted

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