From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Peter Stephenson <pws@ibmth.df.unipi.it>, zsh-workers@math.gatech.edu
Subject: Re: PATCH: 3.1.5-pws-4: findcmd()
Date: Mon, 18 Jan 1999 08:43:47 -0800 [thread overview]
Message-ID: <990118084347.ZM7823@candle.brasslantern.com> (raw)
In-Reply-To: <9901181309.AA49968@ibmth.df.unipi.it>
On Jan 18, 2:09pm, Peter Stephenson wrote:
} Subject: PATCH: 3.1.5-pws-4: findcmd()
}
} I added a second argument
} which lets findcmd() effectively return a truth value.
I think it would be worth "documenting" that findcmd() returns its first
argument when the docopy parameter is zero. Besides, your comment has a
typo.
Index: Src/exec.c
===================================================================
--- exec.c 1999/01/18 16:39:07 1.16
+++ exec.c 1999/01/18 16:42:40
@@ -461,8 +461,8 @@
/*
* Get the full pathname of an external command.
- * If the first argument is zero, just return a non-null pointer if found;
- * if non-zero, get the actual name using heap memory.
+ * If the second argument is zero, return the first argument if found;
+ * if non-zero, return the path using heap memory. (RET_IF_COM(X), above).
*/
/**/
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
prev parent reply other threads:[~1999-01-18 16:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-15 18:21 try(X) in exec.c ? Daniel X. Pape
1999-01-16 1:03 ` Bart Schaefer
1999-01-18 13:09 ` PATCH: 3.1.5-pws-4: findcmd() Peter Stephenson
1999-01-18 16:43 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=990118084347.ZM7823@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=pws@ibmth.df.unipi.it \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).