Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker.mit.edu!apple!olivea!tymix!tardis!jms From: jms@tardis.Tymnet.COM (Joe Smith) Newsgroups: comp.sys.amiga.tech Subject: Parsing filenames with blanks inside Rexx Summary: How do you do it? Message-ID: <1400@tardis.Tymnet.COM> Date: 7 Jan 91 07:04:37 GMT Reply-To: jms@tardis.Tymnet.COM (Joe Smith) Organization: BT Tymnet, San Jose, CA Lines: 23 Enclosed is an excerpt from one of my Arexx scripts: scandir: arg dir files=showdir(dir) do while words(files) > 0 file=subword(files,1,1) xx=statef(file) say xx /* this line simplified for this example */ files=subwork(files,2) end return I'm having problem handling filenames that contain embedded blanks. Other than modifying the showdir() function to put some sort of quotes around these filenames, I don't see how files like this can be processed. Is there something I'm missing? Or is this an unsolvable problem? -- Joe Smith (408)922-6220 | SMTP: jms@tardis.tymnet.com or jms@gemini.tymnet.com BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms PO Box 49019, MS-C51 | BIX: smithjoe | CA license plate: "POPJ P," (PDP-10) San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga 3000 speaks for me."