shelljs / shx

Portable Shell Commands for Node
MIT License
1.73k stars 45 forks source link

`shx echo -n aaa` shows `-n aaa` #129

Closed exKAZUu closed 6 years ago

exKAZUu commented 6 years ago

Node version (or tell us if you're using electron or some other framework):

v9.11.1

Shx version (the most recent version/Github branch you see the bug on):

0.2.2

Operating system:

Windows 10

Description of the bug:

shx echo -n aaa shows -n aaa.

nfischer commented 6 years ago

Can repro. I'm guessing from https://github.com/shelljs/shelljs/issues/855 that this is a bug in shx code.

I have no issue using shx rm -f ..., so this only affects echo? Strange...

nfischer commented 6 years ago

Actually, maybe shelljs is out of date? We bumped the version in #126, but haven't cut a release since then.

nfischer commented 6 years ago

Confirmed this works on master. I'll cut a new minor release.

nfischer commented 6 years ago

Released in v0.3.0 :tada:

exKAZUu commented 6 years ago

Confirmed it works well. Thanks!