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

Re: How to fix run-help-* functions?



On Tue, Mar 7, 2023, 18:13 Philippe Troin <phil@xxxxxxxx> wrote:
On Tue, 2023-03-07 at 15:30 +0100, Michele Venturi wrote:
> Just try "autoload run-help-sudo; run-help sudo" or "autoload run-
> help-git; run-help git" etc. to see the error.

What's wrong with run-help?

   % zsh -f
   % echo $ZSH_VERSION                   
   5.8.1
   % export PAGER='head -n 5'
   % autoload run-help-git; run-help git
   GIT(1)                            Git Manual                            GIT(1)

   NAME
          git - the stupid content tracker

   % autoload run-help-sudo; run-help sudo
   SUDO(8)                   BSD System Manager's Manual                  SUDO(8)

   NAME
        sudo, sudoedit — execute a command as another user

   %

Phil.

If you don't unalias run-help it runs man so it seems to
work, but doesn't use the function defined by the shell.



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