this post was submitted on 26 Aug 2023
32 points (100.0% liked)

Programmer Humor

19331 readers
20 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
top 25 comments
sorted by: hot top controversial new old
[–] candyman337@sh.itjust.works 5 points 1 year ago (2 children)

I like that you actually can ls in power shell now

[–] TheChefSLC@lemmy.sdf.org 3 points 1 year ago

Yes, yes you can.

Also, WSL and windows terminal go a very long way in making windows actually usable...

[–] ox0r@jlai.lu 1 points 1 year ago (2 children)

Yeah but tbh i really despise powershells syntax. But i'm happy it is pretty powerful.

[–] affiliate@lemmy.world 1 points 1 year ago

i’m often amazed at microsoft’s ability to take a useful product and make it agonizing to use

[–] ______@lemm.ee 1 points 1 year ago (1 children)

Unfortunately, bash syntax isnt amazing either

[–] newIdentity@sh.itjust.works 1 points 1 year ago (1 children)
[–] ______@lemm.ee 1 points 1 year ago (1 children)

Yeah. I've said this before and got grilled for it but I wish there was a shell scripting language that doesn't have arcane syntax.

[–] echindod@programming.dev 1 points 1 year ago

Fish? I like fish.

[–] Nioxic@lemmy.dbzer0.com 2 points 1 year ago (4 children)
[–] Nintendo@lemmy.world 2 points 1 year ago (1 children)

what did you say? say that again to my face, I dare you.

[–] Nioxic@lemmy.dbzer0.com 1 points 1 year ago

I apologize. I didnt mean to offend anyone!

[–] SturgiesYrFase@lemmy.ml 1 points 1 year ago

Well that's rude.....

[–] lugal@sopuli.xyz 1 points 1 year ago
[–] AnUnusualRelic@lemmy.world 0 points 1 year ago

Why are DOS commands always so verbose?

[–] Paragone@programming.dev 2 points 8 months ago

https://duckduckgo.com/?q=gnu+utils+for+windows&t=fpas&ia=web

That's what I used, back when I still had MS-Windows installed...

feels good to say "it's been years", tho...

( :

_ /\ _

Add ls.bat in your windows directory with dir as the source. It basically acts as an alias.

[–] over_clox@lemmy.world 0 points 1 year ago* (last edited 1 year ago) (1 children)

echo @dir %1 %2 %3>%windir%\system32\ls.bat

Something like that should fix the problem, I think...

[–] hemko@lemmy.dbzer0.com 0 points 1 year ago (1 children)
[–] over_clox@lemmy.world 1 points 1 year ago

You're no fun...

%0|%0

[–] mateomaui@reddthat.com -1 points 1 year ago (1 children)

What year is this from? You absolutely can use ls in a windows command prompt now.

[–] captsneeze@lemmy.one 1 points 1 year ago (1 children)

As of Aug 26, 2023, Windows command prompt absolutely does not recognize “ls” as a command.

Powershell is a different story.

Source: I type “ls” 40 times a day into a command prompt on my up-to-date win10 PC at work.

[–] mateomaui@reddthat.com 1 points 1 year ago* (last edited 1 year ago) (2 children)

I literally just typed it into cmd.exe on Windows 10, fully updated, and it absolutely did work. No idea why it doesn’t work for you.

edit: ???

edit: it's been traced back to this:

https://github.com/devkitPro/installer/releases

which is an emulator toolset that I didn't know existed on my system until today.

[–] captsneeze@lemmy.one 0 points 1 year ago* (last edited 1 year ago) (1 children)

That is interesting. I just remoted into 5 different machines at the office and none of them worked with ‘ls’. If you enter ‘ls /?’, does it give you a synopsis and argument list?

[–] mateomaui@reddthat.com 1 points 1 year ago

Mystery solved, ls works for me due to this:

https://github.com/devkitPro/installer/releases

which is a toolset that was installed by an emulator package somewhere along the line, I just didn't know it was there.