3 ms·
> I have never seen good argument against PowerShell As long as I have to type `Get-Content` instead of `cat`, that's argument enough for me.
by usrbinbash 4y ago
> I have never seen good argument against PowerShell
As long as I have to type `Get-Content` instead of `cat`, that's argument enough for me.
- majkinetor 4y agoBut 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)
- bzxcvbn 4y agoGood news: cat is a built-in alias for Get-Content in powershell.
- oblio 4y agoThis 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.