delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/02/23/13:31:10

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Fri, 23 Feb 2007 19:28:10 +0100
From: Robert Riebisch <Robert DOT Riebisch AT arcor DOT de>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Some `which' questions
Lines: 25
Message-ID: <45df3236$0$20287$9b4e6d93@newsspool3.arcor-online.net>
Organization: Arcor
NNTP-Posting-Date: 23 Feb 2007 19:28:06 CET
NNTP-Posting-Host: 36ec5888.newsspool3.arcor-online.net
X-Trace: DXC=@[Z2cRP2RgSPU8j_I0DN6_McF=Q^Z^V3X4Fo<]lROoRQFl8W>\BH3YRIOPW`RUVAM\B5lc^0gQ=4Q?lK5CCSWJMT]\FTN<0?MjTc1imOE;U0lQ_oHF]]1bjGY
X-Complaints-To: usenet-abuse AT arcor DOT de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi!

I need some libs ported to DJGPP, but I wanted to start a little bit
easier. ;-) So I had a look at `which' ports 2.11 and 2.14.

1) Why does `which' look for programname.exe, .com, .bat in this order,
when MS-DOS COMMAND.COM looks for programname.com, .exe, .bat? Is this
to speed-up search, because most DJGPP programs are .EXEs? Or is this
the search order in the `bash' port?

2) MS-DOS COMMAND.COM looks for a program in the current directory
first. So `which' is useless w/o a `bash', because it searches in %PATH%
first. Should this be changed? E.g., by examining %COMSPEC% for
COMMAND.COM, 4DOS.COM, NDOS.COM, ...

3) What compiler version should I use for distribution binaries? GCC
4.1.0 is newer, but creates much larger EXEs. (I use GCC 3.4.4 now.)

4) How do I "package" whic216b.zip, whic216d.zip, whic216s.zip? Are
there any additional tools invoked?

-- 
Robert Riebisch
Bitte NUR in der Newsgroup antworten!
Please reply to the Newsgroup ONLY!

- Raw text -


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