🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #7937

Re: Parsing filenames with blanks inside Rexx

#7937
From: Willis F York
Date: Mon, 07 Jan 1991 18:25
39 lines
1717 bytes
wfh58@leah.albany.edu (William F. Hammond) writes:

>In article <1400@tardis.Tymnet.COM> jms@tardis.Tymnet.COM (Joe Smith) writes:
>> . . .
>>	files=showdir(dir)
>>	do while words(files) > 0
>> . . .
>>I'm having problem handling filenames that contain embedded blanks.
>> . . .

Well i missed the original post, but try "adding" a ' (single quote)
at the beggining and end of every file name that gets read into the
rexx program.

ie. i got a program called dofor.rexx and ya'd do a line like

dofor *.iff zhow

it'd get all the files with .iff and do >zhow foo.iff
then wait for zhow to exit,load the next ect....

but if the file name was like : > my picture.iff the thing messed up.

so in the command that gets sent to Wshell i did a like like.

filename.x = "'"|filename.x|"'"  

(I think i got the syntax above wrong...)

C-ya.

Send me more details and i might be able to hep.
.

--
yorkw@ecn.purdue.edu  Willis F York    
----------------------------------------------
Macintosh... Proof that a Person can use a Computer all day and still
not know ANYTHING about computers. 
Technical Details
Message-ID: <yorkw.663272734@stable.ecn.purdue.edu>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!samsung!noose.ecn.purdue.edu!stable.ecn.purdue.edu!yorkw
References: <1400@tardis.Tymnet.COM> <1991Jan7.164643.20116@sarah.albany.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!samsung!noose.ecn.purdue.edu!stable.ecn.purdue.edu!yorkw
From: yorkw@stable.ecn.purdue.edu (Willis F York)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Parsing filenames with blanks inside Rexx
Message-ID: <yorkw.663272734@stable.ecn.purdue.edu>
Date: 7 Jan 91 18:25:34 GMT
References: <1400@tardis.Tymnet.COM> <1991Jan7.164643.20116@sarah.albany.edu>
Sender: news@noose.ecn.purdue.edu (USENET news)
Organization: Purdue University Engineering Computer Network
Lines: 39