From: Thomas Lauer <thomas.lauer@virgin.net>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: Zsh-Users List <zsh-users@zsh.org>
Subject: Re: execute or print one-liner
Date: Wed, 30 Nov 2022 17:32:07 +0000 [thread overview]
Message-ID: <u84fohp2h1i903g3k5mtuqc72cod79c7d9@tlc.com> (raw)
In-Reply-To: <2128517470.6253406.1669826288648@mail.virginmedia.com>
From Peter Stephenson <p.w.stephenson@ntlworld.com>:
> Not sure how picky you are about having the arguments expanded, but
> something like the following (by no means fully debugged) would work
> if you don't mind the arguments being at the end.
<snipped>
Yes, that looks pretty good.
I actually prefer a simple replacement w/o any arguments as the whole
point of the exercise is to be able to edit the command in question.
So I adapted your code somewhat and integrated it with the alias
expander I already had (now first checks for a function, then an alias)
so that it will expand both. Thanks, problem solved.
And also thanks to Philippe for his idea.
T
prev parent reply other threads:[~2022-11-30 17:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-30 14:10 Thomas Lauer
2022-11-30 16:18 ` Philippe Altherr
2022-11-30 16:38 ` Peter Stephenson
2022-11-30 17:32 ` Thomas Lauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u84fohp2h1i903g3k5mtuqc72cod79c7d9@tlc.com \
--to=thomas.lauer@virgin.net \
--cc=p.w.stephenson@ntlworld.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).