From: Suraj Kurapati Date: 2007-05-24T12:32:04+09:00 Subject: Re: can I do windows shell scripting in ruby? Jano Svitok wrote: > arg1 = "sdas" > arg2 = "sadada" > `svn-admin #{arg1} #{arg2}` This only works if the arguments do not contain spaces (otherwise you end up with more than 2 arguments!). In general, you should protect the arguments with quotes using Object#inspect: `svn-admin #{arg1.inspect} #{arg2.inspect}` There are special cases when you don't need the particular way non-ASCII characters are expressed (octal escape sequences), but this approach works for most purposes. -- Posted via http://www.ruby-forum.com/.