Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Mar 2013 15:43:50 -0500
From:      David Tilbrook <dmtilbrook@gmail.com>
To:        "Teske, Devin" <Devin.Teske@fisglobal.com>
Cc:        Jos Chrispijn <kernel@webrz.net>, "freebsd-questions@FreeBSD.org" <freebsd-questions@freebsd.org>
Subject:   Re: rm -R
Message-ID:  <CAAPNFHQLW7bDmWQ6UvLiSbk38F6h67EzXAfwfRLmQCijLTcBcg@mail.gmail.com>
In-Reply-To: <13CA24D6AB415D428143D44749F57D7201EBE870@ltcfiswmsgmb21>
References:  <51321FAE.2010803@webrz.net> <13CA24D6AB415D428143D44749F57D7201EBE870@ltcfiswmsgmb21>

next in thread | previous in thread | raw e-mail | index | archive | help
Wjy are we syill having this conversation?
The problem (and its solution) have been
raised for at least 39 years.

To specify a file, directory, device, whatever,
whose leaf name begins with a `-', name it using
a leading `./' as in:

      whatever ./-S

That will work for all programs, even those that
do not support -- to terminate flags.

Furthermore it will support glob patterns.

Now was that so difficult?

-- dt



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