From: Tassilo Horn <tassilo@member.fsf.org>
To: info-gnus-english@gnu.org
Subject: Re: Commands on filenames starting with "-"
Date: Fri, 10 Dec 2010 08:05:58 +0100 [thread overview]
Message-ID: <87vd32ksyx.fsf@member.fsf.org> (raw)
In-Reply-To: <87bp6emha0.fsf@engels.HistoricalMaterialism.info>
Haines Brown <haines@HistoricalMaterialism.info> writes:
> I've managed to create some files, the names of which start with a
> dash ("-"). Stupid, I know.
No, there's no restriction from using those filenames.
> I have not been able to figure out how to run commands on them such as
> cat or to cut out the leading dash (mv).
Use -- to tell the command, that from there on, no options are given
anymore.
# Delete the files -i and --interactive
$ rm -- -i --interactive
Bye,
Tassilo
next prev parent reply other threads:[~2010-12-10 7:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-28 16:08 Haines Brown
2010-12-10 7:05 ` Tassilo Horn [this message]
2010-12-11 23:43 ` Vincent Beffara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vd32ksyx.fsf@member.fsf.org \
--to=tassilo@member.fsf.org \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).