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

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





On Mon, Mar 13, 2023, 21:41 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:

This seems to cover it:

diff --git a/Functions/Misc/run-help b/Functions/Misc/run-help
index d52c1b032..0bf84447a 100644
--- a/Functions/Misc/run-help
+++ b/Functions/Misc/run-help
@@ -98,9 +98,9 @@ do
            if whence "run-help-$1:t" >/dev/null
            then
                local cmd_args
-               builtin getln cmd_args
+               builtin getln cmd_args &&
                builtin print -z "$cmd_args"
-               cmd_args=( ${(z)cmd_args} )
+               cmd_args=( ${(z)${cmd_args:-"$*"}} )

                 # Discard the command itself & everything before it.
                 shift $cmd_args[(i)${run_help_orig_cmd:-$1}] cmd_args ||

I hope that's enough context,I've an alias named "pkgu" set to "sudo pacman -S -y -u" and "run-help pkgu" gives
the same error as before, can you check it on your end?



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