]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sh: Prefer internal nextopt() to libc getopt().
authorJilles Tjoelker <jilles@FreeBSD.org>
Sat, 15 Sep 2012 21:56:30 +0000 (21:56 +0000)
committerJilles Tjoelker <jilles@FreeBSD.org>
Sat, 15 Sep 2012 21:56:30 +0000 (21:56 +0000)
commit7cbda73825918d63360a7d815ff59341d1800d1a
tree8f1502baabb3376aec513c46c8781c9f452a7b3d
parentc99c0499e099a4c8225bba85447a145b2b08a9a2
sh: Prefer internal nextopt() to libc getopt().

This reduces code duplication and code size.

/usr/bin/printf is not affected.

Side effect: different error messages when certain builtins are passed
invalid options.
bin/sh/cd.c
bin/sh/eval.c
bin/sh/histedit.c
bin/sh/jobs.c
bin/sh/var.c
usr.bin/printf/printf.c