Skip to content

unexpected behavior from regexp substitution #905

Answered by lmorg
JeffMelton asked this question in Q&A
Discussion options

You must be logged in to vote

You're right on both counts.

^ is used as a token for history variables. And you're right that it's undocumented.

It's also amongst some of Murex's oldest code: https://github.com/lmorg/murex/blob/master/shell/history/vars.go

Given how old the code is and how it's undocumented, I'm definitely open to revisiting / reworking this implementation.

One thought I'd been having lately was having this a feature of readline. Making it a command mode like vi's : command mode. So it could be invoked via [esc]:

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@JeffMelton
Comment options

@lmorg
Comment options

@JeffMelton
Comment options

@lmorg
Comment options

Answer selected by JeffMelton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants