SCOUG-HELP Mailing List Archives
Return to [ 03 |
December |
2006 ]
<< Previous Message <<
>> Next Message >>
In <29093-38446@sneakemail.com>, on 12/03/06
at 11:28 AM, "Bob" <2lvvuss02@sneakemail.com> said:
>No need to go to all that trouble.
True enough.
>Just put the program name, and
>possibly any fixed parameters, in quotes and any variables outside the
>quotes.
>/* rexx */
>fromfile = 'c:\XYZ'
>tofile = 'd:\XYZ'
>'copy' fromfile tofile
FWIW, quoting strings is a good thing, but the quotes have nothing to do
with getting the shell to execute the command line. The shell will
execute whatever expression result it receives, which can have interesting
side effects. The quotes are needed only to avoid REXX syntax errors.
For the reckless
/* rexx */
fromfile = 'c:\XYZ'
tofile = 'd:\XYZ'
copy fromfile tofile
will do exactly the same thing.
An example of interesting side effects is long ago someone complained that
their system would intermittently start lotus 123. Turns out they had a
rexx script running in the background that contained the line
somefunc()
and bad luck had it that somefunc returned 123. :-)
Regards,
Steven
--
----------------------------------------------------------------------
"Steven Levine" MR2/ICE 2.67 #10183 Warp/eCS/DIY/14.103a_W4
www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST)
----------------------------------------------------------------------
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".
For problems, contact the list owner at
"postmaster@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 03 |
December |
2006 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
|