Hacker News new | ask | show | jobs
by rjmorris 1860 days ago
My concern with this approach is that it gives the impression that you can use all the same switches that are available to the real shell commands, which isn't the case. For example, taking the first command documented on the README, cat, shelljs supports the -n switch only, but `man cat` shows about 10 switches for me. So although I agree that the learning curve is lower to get started, you do have to remember that the switches are limited and be sure to check the docs to see which of your shell command switches are supported.
1 comments

That's a valid concern, but personally I wouldn't expect a tool like this to support anything beyond the POSIX standard switches. For "cat", POSIX only specifies a single switch: "-u", which enables unbuffered output. I've never used that switch before, and it's a no-op in both GNU cat and shelljs.