🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #867

Re: building gcc 2.7.1 on DOS

#867
From: Gordon Keith
Date: Thu, 28 Dec 1995 22:52
39 lines
1631 bytes
On 22 Dec 95 at 13:02, Alexander Trump wrote:

> Michael E. Wesolowski (mewesolo@freenet.calgary.ab.ca) wrote:
 
> : I think that what I have to do for DOS is execute the command
> 
> : for %filename in ($(files_to_move)) do move %filename stage1
> 
> IMHO no way. 
> `for'	statement is processed in the batch files only. 

Wrong, DOS handles for statements fine from the command line. However
the variable name can only be one character, environment variables 
are only expanded in batch files, and there is a 256? character 
limit.

for %f in ( *.o ) do move %f stage1
will work fine at the command line (assuming you have a move 
command).

In a batch file this would be:
for %%f in ( *.o ) do move %%f stage1

> I'm afraid DOS won't like a line such long as $(files_to_move).

True.
 


-- gordon_kei@antdiv.gov.au --- gordonkeith@acslink.net.au
Gordon Keith               ,-_|\  Ph:  +61 02 323 452
Programmer                /     \ Fax: +61 02 323 351
Marine Science Section    \_,-._/       
Australian Antarctic Division  *
http://www.antdiv.gov.au          http://acslink.net.au/~gordonkeith
(Standard disclaimer applies)

LOVE: Bears all things, Believes all things,
Hopes all things, Endures all things.             1 Corinthians 13:7
Technical Details
Message-ID: <9512282252.AA02032@life.ai.mit.edu>
Path: arc1-ca.pugleaf.net!antdiv.gov.au!gordon_kei

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!antdiv.gov.au!gordon_kei
From: gordon_kei@antdiv.gov.au (Gordon Keith)
Newsgroups: gnu.g++.help,comp.lang.c++
Subject: Re: building gcc 2.7.1 on DOS
Date: 28 Dec 1995 17:52:56 -0500
Organization: Australian Antarctic Division
Sender: daemon@cis.ohio-state.edu
Distribution: world
Message-ID: <9512282252.AA02032@life.ai.mit.edu>