ns1: {10} % echo "tez" > -d9;rm -r -d9
rm: illegal option -- 9
usage: rm [-dfiPRrW] file ...
ns1: {11} % rm -- -d9
ns1: {12} %

Local search in my archive's mail :

From: John Vance <[EMAIL PROTECTED]>
Subject: Re: Idiots, Fools, and Man Pages 
Cc: [EMAIL PROTECTED]

On Fri, 24 Feb 1995 [EMAIL PROTECTED] wrote:
>  > >the occasional "how do you rm -foo" questions as an indicator that
>  > >we have a chance of serving the average user, but we aren't there
yet.
>  > 
>  > I just checked "man rm" on 1.1 and it doesn't tell you how to remove
-foo.
>  > Why not?
> 
> An educated guess would be that rm(1) uses a standard libc routine
> to do option parsing ... which happens to be getopt(3).  The getopt
> man page describes the use of `--' to end option parsing.
> 
> Would you really want that every man page decribes the transitive
> closure of every library or system routine a command uses?
>

>From an AIX man page on rm(1):

   Syntax
  
  { rm | delete } [  -f ] [  -r ] [  -R ] [  -i ] [  -e ] [  -- ]
  File ...
        .
        .
        .
  
  - -   Indicates that all arguments following it are to be treated
  as file names.  This allows you  to  specify  file names starting
  with one - (dash).

>From a SunOS 4.1.3 man page on rm(1):

SYNOPSIS
     rm [ - ] [ -fir ] filename...
        .
        .
        .

     -    Treat the following arguments as filenames `-' so  that
          you can specify filenames starting with a minus.

It appears that the answer to your question, at least regarding
rm, is 'yes.'

John Vance

--
carlos 
[EMAIL PROTECTED] 
http://carlos.carlos.net 

> > > >Sip! udah beres.. hehee.. gak kepikir pake perl.. ;)
> > > >Thanks lagi yah..
> > >
> > > kalo cp/mv/rm benar tidak bisa, berarti ini bug,
> > > dan sebaiknya dilaporkan ke [EMAIL PROTECTED]
> > > (kalau ndak salah)...

_____________________________________________________________________
Untuk berhenti langganan:
kirim email ke [EMAIL PROTECTED] dg body "unsubscribe id-linux"

Kirim email ke