Article View: comp.sys.amiga.tech
Article #7879Re: Parsing filenames with blanks inside Rexx
From: Robert A Rethemeyer
Date: Mon, 07 Jan 1991 10:00
Date: Mon, 07 Jan 1991 10:00
29 lines
1762 bytes
1762 bytes
Joe Smith writes...
> 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?
I believe Bill Hawes has already solved this one for you.
The following is taken from the Update.doc file on the
ARexx v1.10 update disk:
SHOWDIR()
Usage: SHOWDIR(directory,['All' | 'File' | 'Dir'],[separator])
The SHOWDIR() function now accepts a separator character as the third
argument. Any character, including a null, can be used as a separator,
so this provides a convenient way to separate filenames with a character
that can't be used in the filename.
Examples:
say showdir('df1:c') ==> ts tcc rxc tco hi rxset rx rxlib te
say showdir('df1:c',,';') ==> ts;tcc;rxc;tco;hi;rxset;rx;rxlib;te
> Joe Smith (408)922-6220 | SMTP: jms@tardis.tymnet.com or jms@gemini.tymnet.co
m
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Bob Rethemeyer // "My Sneaker-Phone keeps kicking my
DrBob@cup.portal.com -or- // Football-Phone off the hook."
..!sun!portal!cup.portal.com!DrBob // - Jay Leno
Technical Details
Message-ID:
<37686@cup.portal.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!portal!cup.portal.com!DrBobReferences:
<1400@tardis.Tymnet.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!portal!cup.portal.com!DrBob From: DrBob@cup.portal.com (Robert A Rethemeyer) Newsgroups: comp.sys.amiga.tech Subject: Re: Parsing filenames with blanks inside Rexx Message-ID: <37686@cup.portal.com> Date: 7 Jan 91 10:00:00 GMT References: <1400@tardis.Tymnet.COM> Organization: The Portal System (TM) Lines: 29