Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Parameter subsitution



> On Jan 8, 2021, at 6:46 PM, Lewis Butler <lbutler@xxxxxxxxxx> wrote:
> 
> Ah, yes, I can see where that would be useful. I often (used to)
> do things in bash like `^string^replace` (I think that's right)

Note that zsh recognizes ^foo^bar as well, and bash recognizes !?foo.

> Wonder why my zsh is not behaving as your with the recalling of l
> in the substation though.
> 
> $ zsh --version
> zsh 5.8 (x86_64-apple-darwin20.0)
> 
> Maybe something in oh-m-z?

Perhaps omz is doing its own history expansions that make using a
null pattern on your command line untenable.

vq




Messages sorted by: Reverse Date, Date, Thread, Author