James Carlson <[EMAIL PROTECTED]> wrote:
> Piotr Jasiukajtis / estibi writes:
> > >> 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
> > $
>
> That's pretty silly, but I have a hard time seeing it as an actual bug
> in GNU (or really feature in Solaris). When you walk off the end of
The GNU rm is in hard violation with the POSIX standard.
In special with core UNIX programs likee rm, it is important to follow
standards.
The worst POSIX deviation seen with GNU rm is that GNU rm allows to remove
non-empty directries without previously removing the content. If GNU rm is
passed the non-standard "-d", it will act like the unlink(1) command. POSIX
intentionally defined a distinct program for this action and -d is a frequent
typo from trying to type -f.
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