From owner-freebsd-hackers Thu Dec 6 14:41:14 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by hub.freebsd.org (Postfix) with ESMTP id 3515937B41A; Thu, 6 Dec 2001 14:41:10 -0800 (PST) Received: (from babolo@localhost) by aaz.links.ru (8.9.3/8.9.3) id BAA10591; Fri, 7 Dec 2001 01:48:06 +0300 (MSK) Message-Id: <200112062248.BAA10591@aaz.links.ru> Subject: Re: tar and nodump flag (fwd) In-Reply-To: <200112061117.fB6BHPf19872@burner.fokus.gmd.de> from "Joerg Schilling" at "Dec 6, 1 12:17:25 pm" To: schilling@fokus.gmd.de (Joerg Schilling) Date: Fri, 7 Dec 2001 01:48:06 +0300 (MSK) Cc: "."@babolo.ru, schilling@fokus.gmd.de, brandt@fokus.gmd.de, freebsd-hackers@freebsd.org, obrien@freebsd.org, tofergus@yahoo.co.uk From: "."@babolo.ru MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Joerg Schilling writes: > >From babolo@links.ru Thu Dec 6 00:41:54 2001 > > >Joerg Schilling writes: > >..... > >> STAR Option Description Gnu tar equiv. Remarks > >> =========== =========== ============= =================== > >..... > >> file=nm,f=nm use 'nm' as tape instead of stdin/stdout -f close to identical > >May be close to identical in function, but not in convenience > >What about f=*.[ch] or f=something > > Here is a more complete desciption of the features of the getargs() > function that is used to parse the command line arguments of all > schily programs: > > /*--------------------------------------------------------------------------*/ > As a hint for readers to the star manual page, star uses getargs() to parse > the command line. Getargs() is much more flexible than getopt() and is even > older than getopt(). The following features > > - All single char boolean options and all single char increment type > options may be combined into a single string starting with a single > dash (-). > > - getargs() has a compatibility mode for GNU programs and allows to > preceede long options with a double dash (--) instead of the usual > single dash (-). > > - All options that take an argument are listed in the man page for > better readability of the manual as: > > option=arg > > but the following variants may appear in the actual command line: > > option=arg > option= arg > -option=arg > -option= arg > -optionarg > -option arg > > - A separate double dash (--) may preceede any argument that looks like > an option and specifies that the immediately following argument is > a file type argument. > > /*--------------------------------------------------------------------------*/ > > I am not shure whether I should ad this to all of my maual pages or whether I > should add a "SEE ALSO" note in the man page and include the getargs() man page > with all programs. There is the first time I install star and I see no other way to know quikly about getargs. Yes, I use sometimes sources for investigate some trick but I am restricted by time. I think others too. Any way to include in manual is better then none. Thanks. -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message