Piotr Jasiukajtis / estibi <[EMAIL PROTECTED]> wrote:
> Sean Sprague pisze:
> > Piotr,
> >
> >> Well, I think it's worse then lack of order in the GNU's parameters.
> >
> > Most command line utilities in (Open)Solaris, and other UNIXes will take
> > arguments in any sequence; the only caveat to that is when an option
> > takes a parameter (eg. filename) which is usually bound to the option. I
> > think that the phrase "in the GNU's parameters" needs clarification.
> With "GNU's parameters" I mean:
> GNU:
> $ touch none
> $ rm -r none -f
> $
>
> Solaris:
> $ touch none
> $ rm none -f
> rm: -f: No such file or directory
The Solaris behavior is correct. From the POSIX man page:
NAME
rm - remove directory entries
SYNOPSIS
rm [-fiRr] file...
The first file type parameter stops option parsing.
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code