this post was submitted on 20 Feb 2024
-1 points (46.2% liked)
Linux
2415 readers
35 users here now
Shit, just linux.
Use this community for anything related to linux for now, if it gets too huge maybe there will be some sort of meme/gaming/shitpost spinoff. Currently though… go nuts
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This is exactly correct. This is why I say it would require a whole new OS with no regard for compatibility with current systems.
As long as arguments are typeless and transmitted in a single array, there is no universal way to make programs distinguish between an option and file name that are identical. Full stop. No way. This has nothing to do with quoting schemes.
There are conventions to work around this (like
--
) but that is at the command level, NOT the shell level. It is not universal.Okay, I pretty much agree with you in theory, but in practice you're basically describing PowerShell which I just cannot. :P
LOL. Now I feel dirty.
To be fair, there's a lot that PowerShell does much better than Bash and similar shells. Piping tables as tables is rad.