Open sntran opened 1 month ago
After reading shelljs doc on sed
, the replacement must be a JS replacement string, i.e. shx sed 's/\[([^\&]*)\&/[$1&/g'
.
So in term of being a wrapper around shelljs
, this is not a bug in shx
.
However, being a shell replacement for sed
, it is a surprised, as I would expect the same syntax as sed
.
Also, in sed
, open and close parentheses need to be escaped I believe, but not with shx
.
With the following
test.file
:With actual
sed
on macOS:With
shx sed
:Node version: v20.12.2