delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/23/02:35:06

From: "Stratis Aftousmis" <lsdguru78 AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <tYvN8.184242$9F5 DOT 9825507 AT typhoon DOT austin DOT rr DOT com> <ae72u4$h4o$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <3D0E8426 DOT F2AD852A AT yahoo DOT com DOT au> <3D151A90 DOT 4050807 AT attbi DOT com>
Subject: Re: Environment variables, and command line option's.
Lines: 65
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Message-ID: <58dR8.46616$9b.8452680@typhoon.austin.rr.com>
Date: Sun, 23 Jun 2002 05:37:05 GMT
NNTP-Posting-Host: 24.243.4.160
X-Complaints-To: abuse AT rr DOT com
X-Trace: typhoon.austin.rr.com 1024810625 24.243.4.160 (Sun, 23 Jun 2002 00:37:05 CDT)
NNTP-Posting-Date: Sun, 23 Jun 2002 00:37:05 CDT
Organization: Road Runner - Texas
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Jason Hood wrote:

>
> Hans-Bernhard Broeker wrote:
>
>>Stratis Aftousmis <lsdguru78 AT hotmail DOT com> wrote:
>>
>>>Hello all, first question i have i think alot of people have asked before
>>>but i have yet to find an answer. Can i set up environment variable's for
my
>>>input and output directories? Yes i did RTFM on enviorment variable's but
i
>>>saw nothing on what i want to do. Below is an example, everything between
%
>>>and % is an environment variable:
>>>
>>>c:\djgpp\bin>gcc %input% -o %output%
>>>
>>You can set up environment variables to you heart's content.  But that's
>>not the real issue.  That would be how you can make the tools *use* the
>>values of those variables.
>>
>>At this point, one rather stupid limitation of raw DOS would bite you:
>>it doesn't expand environment variables at all in interactive use.  I.e.
>>if you typed these commands at the command.com prompt
>>
>>        set INPUT=d:\some\strange\place
>>        set OUTPUT=E:\an\even\stranger\location
>>        gcc %INPUT%/foo.c -o %OUTPUT%/foo.o
>>
>>gcc would _not_ refer to file d:\some\strange\place\foo.c, because
>>%INPUT% didn't get replaced by the value of that variable.
>>COMMAND.COM in raw DOS only does that while running .bat files.
>>
>
> If you're willing to try another command line editor, CmdEdit can do
> this, as well as filename completion, brace expansion and associations:
>
> http://cmdedit.adoxa.cjb.net/
>
> Jason.
>

I think i'm going to give cmdedit a try having no luck with makefile's and
not really knowing what the outcome would be aside from somthing like
enviroment variable's. I can't use BASH for djgpp because i don't use it
anymore, unless i find the one that work's with mingw which is what i'm
using now.

Thank's for the reply jason.

strat

--
"I don't have to KNOW people that inspire me, i just have to KNOW that
people that inspire me exsist" Caroline barcher









- Raw text -


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