From: "Bart Schaefer" <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: zsh-4.04 and w3m browser
Date: Wed, 28 Aug 2002 11:16:02 -0700 [thread overview]
Message-ID: <020828111602.ZM7907@candle.brasslantern.com> (raw)
In-Reply-To: <24871.1030557411@csr.com>
On Aug 28, 6:56pm, Peter Stephenson wrote:
> Subject: Re: zsh-4.04 and w3m browser
> Wayne Davison wrote:
> >
> > If there were some way to run a shell function after the user hits
> > return but before the line is parsed, it would be possible for the
> > function to add single quotes
>
> I've never dared add this because it's too easy to get the shell into a
> state where it will never work again.
What about a command-not-found hook of some kind? E.g. any time you get
command-not-found, run function X with the command line as $@. The only
rule would be that if you get command-not-found again while inside the
command-not-found hook, the hook is not called again.
Then one could do something like
realpath=($path)
path=()
setopt noglob
function command_not_found_hook {
local -ah path
path=($realpath)
setopt localoptions glob
urlglobber "$@"
}
prev parent reply other threads:[~2002-08-28 18:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.44.0208280943460.18602-100000@scuzzy.blorf.net>
2002-08-28 17:56 ` Peter Stephenson
2002-08-28 18:16 ` Bart Schaefer [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=020828111602.ZM7907@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/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).