DragonFly commits List (threaded) for 2009-08
DragonFly BSD
DragonFly commits List (threaded) for 2009-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: printf(1): don't use getopt, second take


From: Simon Schubert <corecode@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Aug 2009 11:30:52 -0700 (PDT)

commit 48c719803a04b9995a2fd9e4312f051296046b00
Author: Simon Schubert <corecode@dragonflybsd.org>
Date:   Thu Aug 20 20:21:26 2009 +0200

    printf(1): don't use getopt, second take
    
    printf must not use getopt, since any passed string is
    valid, also strings starting with -, i.e.
    	printf -f%s oo
    has to print "-foo" and not error out with
    "illegal option".
    
    However, if printf is passed "--" as an argument separator, we have to
    discard it and may not print it.

Summary of changes:
 usr.bin/printf/printf.c |   28 +++++++++++++++++-----------
 1 files changed, 17 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/48c719803a04b9995a2fd9e4312f051296046b00


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]