| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: REXX - How Does One Quote An Apostrophe ? |
Don{ald} O. Woodall schrieb:
> In , on 04/04/2005
> at 11:44 PM, "Lloyd Jones" said:
>
> Hi Lloyd
>
>
>>All I can assume is that you changed your quotes from the original
>>sample. This will work:
>> 'md "abcde''f"'
>>- the quotes are as follows:
>>single, double, single, single, double, single
>
>
>>The OS/2 command will then see - md "abcde'f"
>
>
> You need to remember we switched from using OS/2 commands to using
> REXX commands.
>
>
>>Lloyd
>
>
> Are suggesting somethong like:
>
> CALL sysmkdir ""Desktop\Programs\Develop^ment\IBM!!Developer's!!
> Toolkit!!version 4.5""
>
> would work?
No!
" is from sight of REXX the start of a string like ' does at the same
position. The next " will end the string, resulting in an empty
string. The next har will start as a variable name.... So unil the
first ' it will be intrpreted as a variable named destop\.....
The single quote char behind ...per will start another string, meaning
concatenation the value of empty string combined with the content of
the variable named deskto..... and an inccomplete string 's.......
-> syntax error as the string is not terminated.
REXX is thinking:
- anything that is not quoted and ends befor a space OR an operator is
a name of a variable. If that name can not interpreted as an operand
of an operator (e.g. =, ==, !=, =, ) it will be
interpreted as holding a commant to either REXX or the command
processor REXX runs in. That results here in an syntax error.
You would use
path =
"destop.......'s"d2c(10)"Toolkit"d2c(10)"version....."
The double exclamation mark is nothing than the translation of hex 0a
(decimal 10) to a printable char and NOT real!
As sayed use simple the sysfiletree() procedure to read in the names
and use the stem to reproduce them to the destination drive.
I saved yet often enough to learn REXX to mak things really simple.
rc = sysfiletree(path, stem., "FO")
gives you the list of files of an specific directory - simple, eh?
rc = sysfiletree(path, stem., "DO")
gives you the list of directories in a specific directory - simple, eh?
path = 'x' || substr(stem., 2, letngh(stem.i) - 1)
rc = sysmkdir(path)
will create a directory from the path on drive x instead of the
original path.
Yes, there is the part missing that gives you the right value for i -
but you owns that. Learn to understund REXX from the dample you owns
already.
--
Tschau/Bye
Herbert Rosenau eCS 1.2 Deutsch bestellen bei
EDV Beratung & Programmierung http://pc-rosenau.de
Eichelsdorfer Str. 15 http://ecomstation.de
97461 Hofheim i.UFr.
Tel: 49-9523-502834
Fax: 49-9523-502823 http://www.dv-rosenau.de/
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/os2user/
To unsubscribe from this group, send an email to:
os2user-unsubscribe{at}yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
---
* Origin: Waldo's Place USA Internet Gateway (1:3634/1000)SEEN-BY: 633/267 270 5030/786 @PATH: 3634/1000 12 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.