Command Line Revisited
[1/4] from: learned:talentsinc at: 27-Sep-2001 10:37
In the windows 2k environment, I am seeing some interesting quirks from the
command line. For these examples, I'm leaving pathnames off, though the
effect is the same either way. If I enter the following:
rebol --secure allow -w -q -s script.r c:\filename.txt
I can see the filename in system/script/args with no problem. However, if I
place a do %script.r in my user.r file, and call it with:
rebol --secure allow -w -q c:\filename.txt
I get 'none' in my system/script/args var. Also, if I use the -- delimiter
which should indicate anything else is passed to rebol as an argument as in:
rebol --secure allow -w -q -s script.r -- c:\filename.txt
rebol --secure allow -w -q -- c:\filename.txt
I get 'none' as well. Any thoughts as to why the variations?
One final question. Is there any way to set an environmental var (i.e.
ERRORLEVEL) upon exiting?
Thanks
---
G. Edw. Learned - [learned--talentsinc--net]
(Never apply a Star Trek Solution to a Babylon Five Problem)
[2/4] from: greggirwin:starband at: 27-Sep-2001 11:04
Hi G,
<< I can see the filename in system/script/args with no problem. However, if
I
place a do %script.r in my user.r file, and call it with:
rebol --secure allow -w -q c:\filename.txt
I get 'none' in my system/script/args var. >>
Have you tried system/options/args? There was a discussion about this a
short
time ago I believe.
--Gregg
[3/4] from: learned::talentsinc::net at: 27-Sep-2001 13:38
Yep, that was it...as I understand it now, if I pass a script name, the
variables from the command line are associated with that script, but if
there is no script name, or if the -- delimiter is used, they end up under
system/options. Cool, I can deal with that. What do I need to get to find
the documentation on all these little gotchas?
Gary
--On Thursday, September 27, 2001 11:04 AM -0600 Gregg Irwin
<[greggirwin--starband--net]> wrote:
> Hi G,
> << I can see the filename in system/script/args with no problem. However,
<<quoted lines omitted: 10>>
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
---
G. Edw. Learned - [learned--talentsinc--net]
(Never apply a Star Trek Solution to a Babylon Five Problem)
[4/4] from: greggirwin:starband at: 27-Sep-2001 13:56
Hi Gary,
<< What do I need to get to find the documentation on all these little
gotchas? >>
Watch this ML. :) There are people putting together more and more bits of
documentation to help fill in the blanks. If you poke around the reb-sites
from the View desktop, you can find all kinds of how-tos and helpful hints
and FAQs. The REBOL Forces site is a good resource also.
--Gregg
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted