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

Re: [PATCH 1/2] run-help: chain run-help-sudo to call run-help on the next argument



It seems we have missed two patches from Samir Benmendil.
(pointed out by Christian K, users/26216⁩)

> 2018/12/28 0:24, Samir Benmendil <me@xxxxxx> wrote:
> 
> diff --git a/Functions/Misc/run-help-sudo b/Functions/Misc/run-help-sudo
> index f38696e19..a8fa7aa0f 100644
> --- a/Functions/Misc/run-help-sudo
> +++ b/Functions/Misc/run-help-sudo
> @@ -2,6 +2,6 @@
> if [ $# -eq 0 ]; then
>     man sudo
> else
> -    man $1
> +    run-help $1
> fi
> 

Can we assume that the function run-help is already loaded when run-help-sudo
is called? (I think yes, no one will use run-help-sudo without loading run-help).

If this is the case, I think the patch has no problem.

-----
Jun



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