zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: run-help tidying
@ 1999-11-04 18:48 Clint Adams
  1999-11-04 19:05 ` PATCH: run-help tidying part 2 Clint Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 1999-11-04 18:48 UTC (permalink / raw)
  To: zsh-workers

This is mostly for the ./dot :/colon translation
but some English has been prettied and $HELPDIR
is checked for validity.

--- run-help.dist	Thu Nov  4 11:35:57 1999
+++ run-help	Thu Nov  4 13:43:47 1999
@@ -11,16 +11,19 @@
 emulate -R zsh
 setopt localoptions
 
+[[ $1 == "." ]] && 1="dot"
+[[ $1 == ":" ]] && 1="colon"
+
 # Check whether Util/helpfiles has been used to generate zsh help
 if [[ $1 == "-l" ]]
 then
-    if [[ -n "${HELPDIR:-}" ]]
+    if [[ -n "${HELPDIR:-}" && -d $HELPDIR ]]
     then
-	echo 'Here is a list of topics for which help is available:'
+	echo "Here is a list of topics for which special help is available:"
 	echo ""
 	print -rc $HELPDIR/*(:t)
     else
-	echo 'There is no list of help topics available at this time'
+	echo "There is no list of special help topics available at this time."
     fi
     return 0
 elif [[ -n "${HELPDIR:-}" && -r $HELPDIR/$1 && $1 != compctl ]]
@@ -29,7 +32,7 @@
     return $?
 fi
 
-# No zsh help, use "whence" to figure out where else we might look
+# No zsh help; use "whence" to figure out where else we might look
 local what places newline='
 '
 integer i=0 didman=0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* PATCH: run-help tidying part 2
  1999-11-04 18:48 PATCH: run-help tidying Clint Adams
@ 1999-11-04 19:05 ` Clint Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Clint Adams @ 1999-11-04 19:05 UTC (permalink / raw)
  To: zsh-workers

Oh, and to prevent useless invocations of man:

*** Functions/Misc/run-help.old        Thu Nov  4 14:03:51 1999
--- Functions/Misc/run-help    Thu Nov  4 14:00:18 1999
***************
*** 15,21 ****
  [[ $1 == ":" ]] && 1="colon"
  
  # Check whether Util/helpfiles has been used to generate zsh help
! if [[ $1 == "-l" ]]
  then
      if [[ -n "${HELPDIR:-}" && -d $HELPDIR ]]
      then
--- 15,21 ----
  [[ $1 == ":" ]] && 1="colon"
  
  # Check whether Util/helpfiles has been used to generate zsh help
! if [[ $# == 0 || $1 == "-l" ]]
  then
      if [[ -n "${HELPDIR:-}" && -d $HELPDIR ]]
      then


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-11-04 19:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-04 18:48 PATCH: run-help tidying Clint Adams
1999-11-04 19:05 ` PATCH: run-help tidying part 2 Clint Adams

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).