printf(1): don't use getopt
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 20 Aug 2009 00:24:41 +0000 (02:24 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 20 Aug 2009 08:56:36 +0000 (10:56 +0200)
commit8a65ba3d8f8a805773a99458f6f18f034ad84d57
tree33df38a114c1882f47ec8bda73265593358fd768
parentfe681df117025f4662721f08f56981ca914c9d4d
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".
usr.bin/printf/printf.c