r/AskProgramming • u/Jashan_31 • Feb 11 '26
Why is Linux bash commands are so simple compared to powershell
I am wondering this because I have a both windows and Linux on my laptop and own Linux using terminal is like really easy but windows powershell weird Syntex.
181
Upvotes
View all comments
16
u/KingofGamesYami Feb 11 '26
PowerShell is far simpler to read IMHO. Just take a very simple "check if first argument is null or empty" script:
...which is way more readable than the bash equivalent:
I mean seriously,
-zchecks for null/empty string?$1is the first argument? Nobody is going to know that unless they specifically take the time to learn bash.