Re:Hush, a modern shell scripting language
by majkinetor on Tuesday April 26, 2022 @06:34AM
(#31165774)
But you can - `cat` is alias to Get-Content (one of).
Better, use `gc` Its shorter then `cat` and almost immediately guessable what it does if you know that aliases in pwsh are also named by the standard. "Cat" on the other hand has almost nothing to do with original intent (I am not concatenating stuff, I am getting a content so, the problem with that name is the same as with "magic numbers" in general programming)
Re:Hush, a modern shell scripting language
by oblio on Wednesday April 27, 2022 @08:35AM
(#31179098)
This is first level ignorance. Which is super amusing when coming from folks that otherwise pride themselves on reading long and dry manuals.
PowerShell has aliases. And it comes with a ton of them already defined, they're even listed in the command help page. Get-Content is gc. Heck, Get-Content is even cat.
As long as I have to type `Get-Content` instead of `cat`, that's argument enough for me.