Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Aug 2010 09:36:48 -0700
From:      Rem P Roberti <remegius@comcast.net>
To:        Sean <sean@ttys0.net>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Can't remove or move file
Message-ID:  <4C6EAF20.6010002@comcast.net>
In-Reply-To: <AANLkTimx5R_BKYZ7Zrx1vLg8LqjiUdR0=%2BmO08zLD-Hs@mail.gmail.com>
References:  <4C6EA6B6.6090307@comcast.net> <AANLkTimx5R_BKYZ7Zrx1vLg8LqjiUdR0=%2BmO08zLD-Hs@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

>> No switch with either the rm or mv command works.  What is actually going on
>> here?
> > From the man page:
>
> NOTES
>       The rm command uses getopt(3) to parse its arguments, which allows it to
>       accept the `--' option which will cause it to stop processing flag
>       options at that point.  This will allow the removal of file names that
>       begin with a dash (`-').  For example:
>
>             rm -- -filename
>
> -Sean
>

Yep...I just simply missed that one.  Thanks.

Rem



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C6EAF20.6010002>