@PW Processing Syntax
Fairlight
fairlite at fairlite.com
Mon Mar 24 14:00:18 PDT 2008
Simon--er, no...it was Walter Vaughan--said:
> system "/u/appl/fp/dreport pslipd -f psform -a -v psformv -rw \"aa\""
I prefer:
MyCommand = "/u/appl/fp/dreport pslipd -f psform -a -v psformv -rw \""{aa{"\""
system MyCommand
Rationale?
I always find it's easier to assemble a command in -one- place, and have it
in a central variable. That way, if system bombs and you can't get good
diagnostics, you can track it with msgbox, show, other tools, and it's
already separated out into a variable. You don't have to make a separate
one that duplicates your system call, change one and forget to change the
other, etc.
One of the better things my initial *nix mentor taught me initially in
shell scripting (and it carries into any language) is that if something
will (or just might be) used in more than one spot, declare it once, use it
many times. It avoids a lot of typing, and also a lot of global search and
replace nightmares, too.
FWIW...
mark->
--
"Moral cowardice will surely be written as the cause on the death
certificate of what used to be Western Civilization." --James P. Hogan
More information about the Filepro-list
mailing list