back slash - es

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

back slash - es

Robert L Hamilton
This statement needs the double - clutch for backslash

cmd = 'Dir C:\\program files '  -- zip files.zip file1 file2'

???

BobH

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: back slash - es

measel
RE: [Ibm-netrexx] back slash - es

Bob, the backslash represents an "escape sequence" in java.  The character following the backslash has a special significance to the compiler.  So in order to pass a literal backslash you need to "double clutch" and send two.

Other characters that may need escaping include @ ' " < >



-----Original Message-----
From: [hidden email] on behalf of Robert Hamilton
Sent: Sun 11/7/2010 10:52 AM
To: IBM Netrexx
Subject: [Ibm-netrexx] back slash - es

This statement needs the double - clutch for backslash

cmd = 'Dir C:\\program files '  -- zip files.zip file1 file2'

???

BobH



_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: back slash - es

Thomas.Schneider.Wien
Hello Bob, Mike,

1.) Bob, in NetRexx (*NOT* Rexx) the backslash is an escape character, as Mike said.

This means, Bob, that you have to double the backslash in filename-literals in NetRexx :-(

2.) The advantage is that you may use \n for newline, etc.

Thomas.
========================================================
Am 08.11.2010 13:46, schrieb Measel, Mike:
RE: [Ibm-netrexx] back slash - es

Bob, the backslash represents an "escape sequence" in java.  The character following the backslash has a special significance to the compiler.  So in order to pass a literal backslash you need to "double clutch" and send two.

Other characters that may need escaping include @ ' " < >



-----Original Message-----
From: [hidden email] on behalf of Robert Hamilton
Sent: Sun 11/7/2010 10:52 AM
To: IBM Netrexx
Subject: [Ibm-netrexx] back slash - es

This statement needs the double - clutch for backslash

cmd = 'Dir C:\\program files '  -- zip files.zip file1 file2'

???

BobH


_______________________________________________ Ibm-netrexx mailing list [hidden email]


--
Thomas Schneider Projects ReyC & LOGOS on www.KENAI.com

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Tom. (ths@db-123.com)