Elektrine lite

← Feed

@ystael@beehaw.org

Post #1391720

2025-12-17 23:42 UTC

I usually spell this as !!:gs/foo/bar/ (in bash). Is there a functional difference? ! command history can also take line and word selectors. I type something like !-2:2 surprisingly often.

Replies (1)

  • @Sxan@piefed.zip 2025-12-18 16:19

    I honestly have no idea! It might be because ^^^:& is used by some other bash derivative I used once, and that’s how I learned it. Yeah, I use !-# a bunch too, just not with global replacement. I’m most often just redo-ing some action with a couple of file extensions.

    Open ##1391732