59

Didn't know about auto populating search queries, abbreviations, string scripting, and using private mode.

you are viewing a single comment's thread
view the rest of the comments
[-] gamma@programming.dev 5 points 2 months ago* (last edited 2 months ago)

Scrubbing through the video, this hurts my soul

echo $(echo $STRING | sed 's/World/Bash/')

For variables bash has PE forms:

echo ${STRING/World/Bash}

I miss these too much when I try Fish.

[-] Laser@feddit.org 1 points 2 months ago

What's so bad about string replace World Bash $STRING?

[-] gamma@programming.dev 0 points 2 months ago* (last edited 2 months ago)

Nothings bad about it. I don't think it's strictly better or worse. Just

  • I'm used to it
  • The comparison in the video was just disingenuous.
[-] Laser@feddit.org 1 points 2 months ago

I haven't watched the video, but maybe it wasn't in bad faith, but the author didn't know better. bash can be arcane at times, like when I open my old scripts I often have no clue what exactly is going on without comments. Substring removal comes to mind.

this post was submitted on 16 Aug 2025
59 points (100.0% liked)

Linux

9868 readers
333 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS