3 ms·
This should not be as downvoted as it is. In a way shell is broken. The brokenness is in that it requires each command to serialize and deserialize again, consi
by zelphirkalt 2y ago
This should not be as downvoted as it is. In a way shell is broken. The brokenness is in that it requires each command to serialize and deserialize again, considering all the weird things that can happen with the "all is a string" kind of approach, instead of having a proper data interchange format or even sending objects to next steps in the pipeline. This behavior is what necessitates even thinking about the changes listed in the post. We wouldn't even have that problem, if the design of shell was better thought out. Now we are dealing with decades of legacy built on these shaky foundations. I hate to admit it, but seems at least this aspect Powershell got right, whatever one may think about the rest of it.
- chasil 2y agoOn my rhel7 system, the Debian dash shell is this large: $ ll /bin/dash -rwxr-xr-x. 1 root root 113536 Nov 5 2018 /bin/dash I happen to have an old powershell installed: $ rpm -qi powershell | grep Size Size : 126588370 A strict POSIX shell is always going to be vastly smaller, for many reasons. I would prefer that the POSIX shell was an LR-parsed language, but you can't have everything.