git: printf(1): don't use getopt

Simon Schubert corecode at crater.dragonflybsd.org
Thu Aug 20 03:59:06 PDT 2009


commit 8a65ba3d8f8a805773a99458f6f18f034ad84d57
Author: Simon Schubert <corecode at dragonflybsd.org>
Date:   Thu Aug 20 02:24:41 2009 +0200

    printf(1): don't use getopt
    
    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".

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8a65ba3d8f8a805773a99458f6f18f034ad84d57


-- 
DragonFly BSD source repository





More information about the Commits mailing list