Kevin,

It's not the shell that has the problem with the -'s it's the
application (mv).

mv interprets "-" as a parameter switch.

`mv "---.dat" foo.dat` is equivalent to `mv ---.dat foo.dat`

(If the problem was a space in the filename, then it'd be a different
story.)

All the best...

Mike

On Fri, 2003-08-01 at 10:46, Kevin Saenz wrote:
> have you tried
> 
> mv "---.dat" foo.dat
> 
> 
> > G'day all...
> > 
> > If I was wanting to move a file called ---.dat to another name (say
> > foo.dat) - how would I go about it?
> > 
> > mv interprets the "-" in the filename as a parameter switch (and as the
> > shell expands wildcards, they are futile) - how do I tell mv that its
> > the file to operate upon?
> > 
> > 
> > Thanks.
> > 
> > Mike
> -- 
> Regards,
> 
> Kevin Saenz
>  
> Spinaweb
> Your one stop shop for I.T solutions.
>  
> Ph: 02 4620 5130
> Fax: 02 4625 9243
> Mobile: 0418455661
> Web: http://www.spinaweb.com.au
> 


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to