0
在节点..中的printf的NodeJS execSync给出错误 - 当使用系统找不到指定的文件
var child_process = require('child_process')
child_process.execSync("printf 'a'") // works fine
child_process.execSync("printf '<a>'") // throws the system cannot find the file specified
我得到的错误。系统找不到指定的文件。
任何人有任何想法如何解决这个问题?我需要使用printf。我想要做的只是打印<a>
我正在使用Windows GIT bash。节点v6.11.3
在命令行上.. printf '<a>'
工作正常,但printf \'<a>\'
给出相同的错误。