this post was submitted on 24 Dec 2025
656 points (98.7% liked)

Microblog Memes

9956 readers
1731 users here now

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, ~~Twitter~~ X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

Rules:

  1. Please put at least one word relevant to the post in the post title.
  2. Be nice.
  3. No advertising, brand promotion or guerilla marketing.
  4. Posters are encouraged to link to the toot or tweet etc in the description of posts.

Related communities:

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] elvith@feddit.org 36 points 2 days ago* (last edited 2 days ago) (1 children)

Microsoft just set a system wide default alias in Powershell for Invoke-WebRequest called curl.

While I get their reasoning for that (I mean, they also aliased e.g. ls and dir to Get-ChildItem which is the same, but way more powerful than the OG commands the aliases hint at), the problem is, that in all those cases the arguments don't match. Something that plays in the favor of Powershell is that arguments are not case sensitive and do not need to be written in full, as long as they're distinct - e.g. -Force may be abbreviated -f as long it's the only argument starting with f. While dir or ls is somewhat likely to be called without arguments (or maybe -f) that's definitely not the case for curl.

[–] HeyThisIsntTheYMCA@lemmy.world 8 points 2 days ago (1 children)

wait they're fucking with the dir command? wheres my torch

[–] elvith@feddit.org 12 points 2 days ago

Yes. Somewhat. In Powershell dir is an alias for Get-ChildItem.

While dir . or dir C:\test\ works as expected, you could also do this: dir HKLM:\HARDWARE -Recurse -Depth 5 which will list your registry from the local machine from the key HARDWARE recursively - but only to a depth of 5 levels.