After upgrading to shx 0.2.1, i.e. a version with the fixed sed syntax, I can't replace strings with a blank string. The issue is likely in these regex.
shx echo 'foobar' | shx sed 'bar' '' # previous syntax, returned 'foo'
shx echo 'foobar' | shx sed 's/bar/lish/' # returns 'foolish'
shx echo 'foobar' | shx sed 's/bar/ /' # returns 'foo '
shx echo 'foobar' | shx sed 's/bar//' # crashes with 'sed: invalid replacement string'
echo 'foobar' | sed 's/bar//' # returns 'foo'
After upgrading to shx 0.2.1, i.e. a version with the fixed sed syntax, I can't replace strings with a blank string. The issue is likely in these regex.