From: Robert Klemme Date: 2007-01-28T19:20:05+09:00 Subject: Re: script with -e command line option??? On 27.01.2007 20:13, Suresh Unadrad wrote: > Robert Klemme wrote: >> This looks like "ruby" was a shell script that does not properly quote >> arguments > > Rob Biedenharn wrote: >> I'd start to suspect that you have "ruby" >> defined as an alias or something to make the args be evaluated twice. > > Turns out that this was indeed the problem. When I started using the > ruby fltk extensions, I found that I had to replace /usr/bin/ruby with > the following script: > > #!/bin/bash > > export LD_ASSUME_KERNEL=2.3.98 > exec /usr/bin/ruby1.8 $* > > > so that's why the arguments were being evaluated twice. > > thanks everyone for your help! You can easily fix that script with this line which will do proper quoting: exec /usr/bin/ruby1.8 "$@" Kind regards robert