* Commands on filenames starting with "-"
@ 2010-10-28 16:08 Haines Brown
2010-12-10 7:05 ` Tassilo Horn
0 siblings, 1 reply; 3+ messages in thread
From: Haines Brown @ 2010-10-28 16:08 UTC (permalink / raw)
To: info-gnus-english
I've managed to create some files, the names of which start with a dash
("-"). Stupid, I know.
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).
Haines Brown
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Commands on filenames starting with "-"
2010-10-28 16:08 Commands on filenames starting with "-" Haines Brown
@ 2010-12-10 7:05 ` Tassilo Horn
2010-12-11 23:43 ` Vincent Beffara
0 siblings, 1 reply; 3+ messages in thread
From: Tassilo Horn @ 2010-12-10 7:05 UTC (permalink / raw)
To: info-gnus-english
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Commands on filenames starting with "-"
2010-12-10 7:05 ` Tassilo Horn
@ 2010-12-11 23:43 ` Vincent Beffara
0 siblings, 0 replies; 3+ messages in thread
From: Vincent Beffara @ 2010-12-11 23:43 UTC (permalink / raw)
To: info-gnus-english
>> 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
Or simply use ./-i ...
/v
--
| | UMPA - ENS Lyon | Mél: vbeffara@ens-lyon.fr |
| Vincent Beffara | 46 allée d'Italie | Tél: (+33) 4 72 72 85 25 |
| | 69364 Lyon Cedex 07 | Fax: (+33) 4 72 72 84 80 |
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-11 23:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-28 16:08 Commands on filenames starting with "-" Haines Brown
2010-12-10 7:05 ` Tassilo Horn
2010-12-11 23:43 ` Vincent Beffara
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).