delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/10/01/16:06:15

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Fri, 01 Oct 2004 22:02:43 +0200
From: "Eli Zaretskii" <eliz AT gnu DOT org>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Message-ID: <01c4a7f1$Blat.v2.2.2$c25f5100@zahav.net.il>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2
In-reply-to: <7b8rl0hfv6q3g3hq6i5uclvha49ta50hil@4ax.com> (message from Brian
Inglis on Fri, 01 Oct 2004 18:29:00 GMT)
Subject: Re: system() return value if no program present
References: <cielml$fln$1 AT nsnmpen3-gest DOT nuria DOT telefonica-data DOT net> <01c49d67$Blat.v2.2.2$625a64a0 AT zahav DOT net DOT il> <42da7100 DOT 0409200424 DOT 59601f01 AT posting DOT google DOT com> <01c49f48$Blat.v2.2.2$03122900 AT zahav DOT net DOT il> <42da7100 DOT 0409210019 DOT 1af1c09d AT posting DOT google DOT com> <01c4a00c$Blat.v2.2.2$f8f56520 AT zahav DOT net DOT il> <cjjc4u$2r6$1 AT nsnmpen3-gest DOT nuria DOT telefonica-data DOT net> <7b8rl0hfv6q3g3hq6i5uclvha49ta50hil AT 4ax DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT Invalid>
> Date: Fri, 01 Oct 2004 18:29:00 GMT
> 
> SHELL is expected to name a Unix like shell, COMSPEC is expected to
> name a DOS like shell

Actually, the DJGPP implementation of `system' treats the values of
SHELL and COMSPEC exactly the same.  It first tries to get the shell
from SHELL, and if that fails, tries COMSPEC, but that's the only
difference between the two; the rest of processing doesn't remember
whether the shell's file name came from SHELL or from COMSPEC.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019