www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/16/19:36:58

From: myknees AT aol DOT com (Myknees)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: djgpp find OK?
Date: 15 Jun 1998 23:03:36 GMT
Lines: 23
Message-ID: <1998061523033600.TAA29874@ladder01.news.aol.com>
NNTP-Posting-Host: ladder01.news.aol.com
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980615094050 DOT 9030H-100000 AT is>
Organization: AOL http://www.aol.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <Pine DOT SUN DOT 3 DOT 91 DOT 980615094050 DOT 9030H-100000 AT is>, Eli Zaretskii
<eliz AT is DOT elta DOT co DOT il> writes:

>> cd \djgpp\bin
>> ln -s find.exe gfind.exe
>
>This will only work for interactive jobs.  But if you have a shell script 
>or a Makefile which need `find' you will still get the DOS version.

That's what I did with date for interactive use.  For portable shell scripts I
suppose you'd say something like:

#! $DJDIR/bin/sh

if [ "$DJGPP" = "" ]; then
    FINDDIR=
else
    FINDDIR=$DJDIR/bin
fi

# ...

--Ed (Myknees)

- Raw text -


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