google / zx

A tool for writing better scripts

Home Page:https://google.github.io/zx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The string is wrapped by $'...' when using space (on windows)

3201623169 opened this issue · comments

commented

Expected Behavior

// git log output: 
update-zx-config
update zx config

Actual Behavior

// git log output:
update-zx-config
$'update zx config'

Steps to Reproduce the Problem

const msg = 'update-zx-config'
await $`git commit -m ${msg}`
const msg = 'update zx config'
await $`git commit -m ${msg}` 

Specifications

  • Version:5.2.0
  • Platform:Node v17.0.0 on Windows

这是安全考虑,已有重复问题
Duplicate of #284

Use bash.