Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Command Line Revisited

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)