Skip to content

Automatic quote addition in interpolation causes issues #45

@konard

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions