by jabirali · 6y ago · 0 comments
On the other hand, wouldn’t you just define anything that beats it also a shell? In my opinion, Fish beats Bash and Zsh in this area, and I would definitely call it a shell even though it’s not a POSIX-compatible shell. A more extreme example would be PowerShell (I’m not a fan but some people love it).
Where would you draw the line between a “shell” and an “interpreted scripting language that beats POSIX shells on dealing with files and streams”?
Powershell isn't even concurrent, its usefulness is along a different dimension to job coordination and control.
Think "diff <(something) <(other)" without using temporary files.
However this can be fragile in bash script since any sub shell command can fail. I am still wandering how to support it in this rust_cmd_lib library.
It's got "Start-Job" and now gets "ForEach-Object -Parallel". What else do you think it's lacking?