Skip to content

Automatic quote addition in interpolation causes issues #45

Description

@konard

🐛 Bug Description

command-stream automatically adds quotes to interpolated values in unexpected ways, causing double-quoting issues and command failures.

🔴 Impact

  • Commands with pre-quoted arguments fail
  • Complex command construction becomes unpredictable
  • Shell scripts behave differently than expected

📝 Problem Example

```javascript
const arg = '"already quoted"';
// ❌ Gets double-quoted
await $`echo ${arg}`;
// Results in: echo ''"already quoted"''
```

🔧 Root Cause

Automatic quoting mechanism doesn't detect already-quoted strings, leading to double-quoting.

🔗 References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions