this post was submitted on 16 Aug 2025
55 points (92.3% liked)

Linux

9621 readers
189 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
 

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 6 points 1 month ago* (last edited 1 month ago) (1 children)

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 1 month ago (1 children)

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

[–] gamma@programming.dev 0 points 1 month ago* (last edited 1 month ago) (1 children)

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 1 month 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.