Live data from Hacker News

Cash: a cross-platform implementation of Unix shell commands in JavaScript

github.com

21–30 of 75 posts

Re: Cash: a cross-platform implementation of Unix shell commands in JavaScript

#21
Nice! I've been using ShellJS (https://github.com/shelljs/shelljs) for this purpose (replacing a bash script with a cross-platform version). Any compelling reasons to use Cash over ShellJS, besides slightly better coverage of UNIX commands?

Re: Cash: a cross-platform implementation of Unix shell commands in JavaScript

#23

Using a terminal in windows was a horrible experience when I had to do it for a (fortunately brief) project a couple of years ago. But I think the real problem isn't the lack of a decent shell; there are already several shells out there that, while not as nice as their modern Unix equivalents, are at least usable. The bigger problem for me was the terminal emulator. Awful fonts, worse rendering, crappy copy/paste, li…

back in the win2k days i used to use the windows port of rxvt. it worked pretty well, though it didn't have splits or tabs.

Re: Cash: a cross-platform implementation of Unix shell commands in JavaScript

#25
post #15

Using a terminal in windows was a horrible experience when I had to do it for a (fortunately brief) project a couple of years ago. But I think the real problem isn't the lack of a decent shell; there are already several shells out there that, while not as nice as their modern Unix equivalents, are at least usable. The bigger problem for me was the terminal emulator. Awful fonts, worse rendering, crappy copy/paste, li…

http://babun.github.io/ is wonderful. ConEmu is a great container for a tabbed interface of Babun, PuTTY or powershell instances.

Babun seems to solve none of the issues that the original commenter mentioned.

  Awful fonts, worse rendering, crappy copy/paste, limited 
  size, no split screen or tabs
The screenshots on the Babun site show the same 90s-era looking shell container. ConEmu looks to have more features, but is similarly stuck in the Win-98 design aesthetic.

Re: Cash: a cross-platform implementation of Unix shell commands in JavaScript

#27
But they are not written in cool languages therefore should be rewritten :(

In all seriousness, I am struggling a bit to see a point in porting everything to JS (beyond a weekend project because why not, let's learn something).

I might be a bit out of the loop since it's been a while that I worked on Windows (and have been using msys2 instead of cygwin back then), but how come DDL and native compiling are the issues in cygwin?

And the 1/15th of the size bit. It's largely simply negligible with hard drives (and even SSDs recently) nowadays.

No snark intended (well, other than the first line, sorry), just genuinely curious.

Re: Cash: a cross-platform implementation of Unix shell commands in JavaScript

#30
post #27

But they are not written in cool languages therefore should be rewritten :( In all seriousness, I am struggling a bit to see a point in porting everything to JS (beyond a weekend project because why not, let's learn something). I might be a bit out of the loop since it's been a while that I worked on Windows (and have been using msys2 instead of cygwin back then), but how come DDL and native compiling are the issues…

Well if Cygwin weren't a terrible mess, maybe we'd be using it more? It's universally reviled by most folks actually on the Windows platform.

The value of this is that it works easily, portably, and with minimal overhead.

By bigger question is, why does posix sh deserve to win? It's plaintext pipes approach is really frustrating in 2016.

Post reply on HN