<div dir="ltr">I'm sorry. I tend to forget why I hate shell scripts.<div>Use "$@" instead. (checked it this time, it works ;-) )<br><br><div class="gmail_quote">2010/6/14 Aharon Schkolnik <span dir="ltr"><<a href="mailto:aschkolnik@gmail.com">aschkolnik@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On Monday, June 14, 2010, Noam Meltzer wrote:<br>
> use $@ instead of $*<br>
<br>
Does that work for you ?<br>
<br>
I still get the same results - the script treates file\ one as two<br>
parameters - file and one.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
><br>
> On Mon, Jun 14, 2010 at 3:27 PM, Aharon Schkolnik<br>
<<a href="mailto:aschkolnik@gmail.com">aschkolnik@gmail.com</a>>wrote:<br>
> > Hi.<br>
> ><br>
> > I want to write a script which will nice ffmpeg whatever parameters it<br>
> > is given - ie:<br>
> ><br>
> > #!/bin/sh<br>
> ><br>
> > nice ffmpeg $*<br>
> ><br>
> > #<br>
> ><br>
> ><br>
> > However, what if I have a file named `file one'<br>
> ><br>
> ><br>
> > I would like to type `myscript -i file\ one output.whatever`<br>
> ><br>
> > I do not want to change what I type - the script needs to be a drop-in<br>
> > replacement for the ffmpeg command.<br>
> ><br>
> ><br>
> > Is there any way to do make the script preserve the backslashed space<br>
> > ?<br>
> ><br>
> > TIA<br>
<br>
--<br>
The day is short, and the work is great, | Aharon Schkolnik<br>
and the laborers are lazy, and the reward |<br>
is great, and the Master of the house is | <a href="mailto:aschkolnik@gmail.com">aschkolnik@gmail.com</a><br>
impatient. - Ethics Of The Fathers Ch. 2 | 054 3344135<br>
</div></div></blockquote></div><br></div></div>