From owner-freebsd-hackers Thu Dec 6 3:18:18 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id 39D2737B416; Thu, 6 Dec 2001 03:18:14 -0800 (PST) Received: from burner.fokus.gmd.de (burner [193.175.133.116]) by mailhub.fokus.gmd.de (8.11.6/8.11.6) with ESMTP id fB6BI7H14630; Thu, 6 Dec 2001 12:18:07 +0100 (MET) Received: (from jes@localhost) by burner.fokus.gmd.de (8.11.4+Sun/8.11.4) id fB6BHPf19872; Thu, 6 Dec 2001 12:17:25 +0100 (MET) Date: Thu, 6 Dec 2001 12:17:25 +0100 (MET) From: Joerg Schilling Message-Id: <200112061117.fB6BHPf19872@burner.fokus.gmd.de> To: "."@babolo.ru, schilling@fokus.gmd.de Cc: brandt@fokus.gmd.de, freebsd-hackers@freebsd.org, obrien@freebsd.org, tofergus@yahoo.co.uk Subject: Re: tar and nodump flag (fwd) 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 >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. Jörg EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin js@cs.tu-berlin.de (uni) If you don't have iso-8859-1 schilling@fokus.gmd.de (work) chars I am J"org Schilling URL: http://www.fokus.gmd.de/usr/schilling ftp://ftp.fokus.gmd.de/pub/unix To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message