Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Parameter subsitution
- X-seq: zsh-users 26356
- From: Lewis Butler <lbutler@xxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Parameter subsitution
- Date: Fri, 8 Jan 2021 16:46:28 -0700
- Archived-at: <https://zsh.org/users/26356>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-01/CE375192-1442-4332-94DB-243CBCB5BE40%40covisp.net>
- In-reply-to: <CAH+w=7ZdgrVcOe2a13_VRyOB4FXus47Z1jKGy6gv6TObSwFy8A@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <6B1D00CF-E282-49D3-8ABE-88AB8EBED62B@covisp.net> <CAH+w=7Yj+mgNGQsXoZn0JSWF-Gk7h=VUE3EnhiBv-kTF8uRzhA@mail.gmail.com> <FEA8311D-1D7E-4E60-99BA-B0D5C52EE077@covisp.net> <CAH+w=7ZdgrVcOe2a13_VRyOB4FXus47Z1jKGy6gv6TObSwFy8A@mail.gmail.com>
On 08 Jan 2021, at 15:53, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Fri, Jan 8, 2021 at 2:31 PM Lewis Butler <lbutler@xxxxxxxxxx> wrote:
>>
>> On 08 Jan 2021, at 15:25, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>>>> Any examples of using !?s in anger?
>>>
>>> What are you talking about!?
>
> Obviously my own attempt to be silly went wide of the mark.
Text is not always the best medium for silliness 😃
>> humorous to do or use something in a real situation
>
> % vi foo.c foo.h
> ... several commands ensue ...
> % !?foo.h?:gs/foo/bar
> vi bar.c bar.h
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) but was frustrated that only replaced the first occurance and only in the previous command, so I got used to using up-arrow to get the command I wanted and then just manually editing.
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?
--
ɹןʇnqן
<mailto:lbutler@xxxxxxxxxx>
tel:+1.303.219.0564
Messages sorted by:
Reverse Date,
Date,
Thread,
Author