Hacker News new | ask | show | jobs
by pastage 728 days ago
It seems like a good idea but breaks down, a shell is text for good reasons.

Psh is ok in Windows land on Microsoft tools, but IMO you might as well use Python if you want those features. I run the same bash script on five platforms while the power of bash disappears when you do not have all the 3rd party tools and Unix kernel, it is still easy to write and execute fast.

That said the idea of power shell is great I use it from bash on Windows for very limited things. As a shell to integrate stuff not so much.

1 comments

POSIX Shell is text for good reasons, but file names aren't (necessarily) text. So POSIX shells aren't very well-suited to dealing with file names, requiring arcane hackery to be portable & safe. It'd be easier with any sort of type system to distinguish file names from text, object orientation isn't necessary at all.