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

Re: Remove path in run-help



On Dec 30, 12:47pm, joerg@xxxxxxxxxxxx wrote:
}
} requesting help (ESC h) for /bin/ls is ugly, because man gets called with
} /bin/ls as agument and tries to view the binary file.

I think the following is the correct fix:

Index: Functions/Misc/run-help
===================================================================
diff -c -r1.3 run-help
--- Functions/Misc/run-help	30 May 2007 03:36:56 -0000	1.3
+++ Functions/Misc/run-help	30 Dec 2007 16:56:45 -0000
@@ -85,7 +85,7 @@
 	man zshmisc
 	;;
     (*)
-	((! didman++)) && man $@
+	((! didman++)) && man $@:t
 	;;
     esac
     if ((i < $#places && ! didman))


-- 



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