>- Open Your Mind -<



Quoting from Petr Krenzelok's message (06-Jul-00 14:04:53).

P> I am just curious if running rebol with command line parameters work for
P> you? I get following error:
P> 
P> rebol --do "print 123"

I get 123. Should be correct, but...


P> ** Script Error: print is missing its value argument.
P> ** Where: print
P> ** Press enter to quit...

I get that error if I try without quotes. Should be correct, but...


... when I ask 

  rebol --do "print 123 * 5"

I get 123 instead of 615. Oddly enough, when I do as the User's Guide says and ask

  rebol --do "print 1 + 2"

I get 3, which is correct.

I use  REBOL/Core 2.3.0.1.1  and  REBOL/View 0.9.9.1.1


[[[ many hours later... ]]]

OOOOO-K! I got it, I was practically sleeping, back then... "*" is an escaping 
character in Amiga's shell, something you use to insert quotes in a quoted string, 
like this: "the beam was 14*" long", so if I escape the escaper (huh?) and ask

  rebol --do "print 123 ** 5"

I get 615, which is correct. If I ask 

  rebol --do "print 10 **** 4"

I get 10000, which is correct. Do you have similar escaping problems with your quotes, 
by any chance?




Alessandro Pini ([EMAIL PROTECTED])

"Beam me to the stars / Beam me up to Mars" (Edelweiss)

Reply via email to