* Remove path in run-help
@ 2007-12-30 12:47 Jörg Sommer
2007-12-30 17:14 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Jörg Sommer @ 2007-12-30 12:47 UTC (permalink / raw)
To: zsh-workers
Hi,
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. Please, add this
line at the beginning of /usr/share/zsh/functions/Misc/run-help
1=${1##*/}
Bye, Jörg.
--
Was man mühelos erreichen kann, ist gewöhnlich nicht der Mühe wert,
erreicht zu werden.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Remove path in run-help
2007-12-30 12:47 Remove path in run-help Jörg Sommer
@ 2007-12-30 17:14 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2007-12-30 17:14 UTC (permalink / raw)
To: zsh-workers
On Dec 30, 12:47pm, joerg@alea.gnuu.de 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))
--
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-30 17:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-30 12:47 Remove path in run-help Jörg Sommer
2007-12-30 17:14 ` Bart Schaefer
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).