From: Robert Klemme Date: 2007-05-07T20:15:09+09:00 Subject: Re: command interpretation On 07.05.2007 12:43, Martin Krischik wrote: > Hallo, > > I searched high and low to find how "command interpretation" actually > works. But all I found is [1]: > > `echo command interpretation with interpolation and backslashes` > %x(echo command interpretation with interpolation and backslashes) > > Now, this does not explain what kind of interpolation is done and more > importantly: How to switch interpolation off. > > Background: I use ruby on the vms operating system and I want to run the > following test command: > > x = �WRITE SYS$OUTPUT F$TRNLNM("SOURCE")� > > But all I get is: > > test.ruby:8: warning: parenthesize argument(s) for future version > test.ruby:8: parse error > x = �WRITE SYS$OUTPUT F$TRNLNM("SOURCE")� > ^ > From which I deduct that some "magic" is done with the $ character > which I don't want. > > Martin > [1] > http://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Literals#Interpolation Use system with multiple arguments. I think that should help. robert