From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: run-help's man arguments
Date: Fri, 05 Jun 2009 08:14:20 -0700 [thread overview]
Message-ID: <090605081420.ZM32372@torch.brasslantern.com> (raw)
In-Reply-To: <2161.1244200252@csr.com>
On Jun 5, 12:10pm, Peter Stephenson wrote:
}
} run-help got changed to invoke "man $@" rather than "man $1". This was
} described as being "to allow the specification of sections and other man
} options through" (sic, presumably something missing?)
"options [to pass] through" I think.
} Nobody's ever complained about this, but this is surely weird; that's
} not how you use run-help, the $@ is the stuff on the command line
} which doesn't include anything for "man" unless you type it yourself,
} which is rather against the spirit of run-help (and very well hidden).
Someone probably mistook run-help for a function that one is intended
to be able to type out by hand (rather than invoke with a keystroke),
and wanted it to become a superset of the "man" command. Although
how that would work for any of the other variations on where a command
is found, I have no idea.
} However, the original query remains. Why do we need $@ rather than $1?
I don't think we ever did. I suppose one could do something such as
alias run-help='\run-help 1'
to try to restrict help to executable commands only, but then that will
fail for anything that is not an external command, so ...
next prev parent reply other threads:[~2009-06-05 16:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-05 11:10 Peter Stephenson
2009-06-05 15:14 ` Bart Schaefer [this message]
2009-06-06 3:52 ` Jun T.
2009-06-06 5:53 ` Bart Schaefer
2009-06-08 8:52 ` Peter Stephenson
2009-06-08 13:54 ` Clint Adams
2009-06-08 14:03 ` Peter Stephenson
2009-06-08 16:06 ` Bart Schaefer
2009-06-08 16:36 ` Peter Stephenson
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=090605081420.ZM32372@torch.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).