9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] removing a file begins with minus sign
@ 2001-12-18  1:24 okamoto
  0 siblings, 0 replies; 4+ messages in thread
From: okamoto @ 2001-12-18  1:24 UTC (permalink / raw)
  To: 9fans

nclude: /mail/fs/mbox/43/raw

Aa--, we need dot before slash.   Thank you!

Kenji



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] removing a file begins with minus sign
@ 2001-12-18  2:51 Russ Cox
  0 siblings, 0 replies; 4+ messages in thread
From: Russ Cox @ 2001-12-18  2:51 UTC (permalink / raw)
  To: 9fans

in addition to using rm ./-jisho, there is another way.

all programs that parse arguments with ARGBEGIN/ARGEND
(or with unix getopt for what that's worth) stop
looking for arguments after seeing --.  thus you
can say

	rm -- -jisho

(or, as another example, grep -n -- '->pdb' *.[ch])



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] removing a file begins with minus sign
@ 2001-12-18  1:18 David Gordon Hogan
  0 siblings, 0 replies; 4+ messages in thread
From: David Gordon Hogan @ 2001-12-18  1:18 UTC (permalink / raw)
  To: 9fans

> I happened to make a file named '-jisho', and want to remove it.
> How I can remove it using qid?

% rm ./-jisho



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [9fans] removing a file begins with minus sign
@ 2001-12-18  1:15 okamoto
  0 siblings, 0 replies; 4+ messages in thread
From: okamoto @ 2001-12-18  1:15 UTC (permalink / raw)
  To: 9fans

I happened to make a file named '-jisho', and want to remove it.
How I can remove it using qid?

Thanks

Kenji --Yes, I'm stupid



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-12-18  2:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-18  1:24 [9fans] removing a file begins with minus sign okamoto
  -- strict thread matches above, loose matches on Subject: below --
2001-12-18  2:51 Russ Cox
2001-12-18  1:18 David Gordon Hogan
2001-12-18  1:15 okamoto

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).