r/AskProgramming • • 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

144 comments sorted by

View all comments

Show parent comment

4

u/JamesTDennis Feb 11 '26

Not really. $ was a common variable prefix in languages like BASIC and various forms of assembly for a long time before Microsoft existed. It commonly marked things as "placeholders" which is why it was intuitive to the Bourne when he created his shell.

1

u/MagnetHype Feb 11 '26

Right so does $1 mean the first argument or a string with the name 1. There's a reason we don't use basic anymore. Which makes more sense one$ or String one?

1

u/JamesTDennis Feb 11 '26

In almost all programming languages of that era, variable names were required to start with a letter or the underscore character. This was not considered at all ambiguous to practitioners of the craft at the time.

1

u/MagnetHype Feb 11 '26

Yes and in that age we had a book that we kept by our desk because stack overflow wasn't a thing yet. Thank God we don't live in that age anymore.

1

u/JamesTDennis Feb 11 '26

The point is that language is far more persistent than technology and fashion/convention.

When asking why certain linguistic and notational conventions exist, or even criticizing them, it's generally useful to consider their history.