NetBSD/src I74hgMs — usr.bin/printf printf.c
Stop assuming that printf handles options in any way at all (it doesn't - that is, shouldn't) which includes processing -- as an "end of options". The first arg is (always) the format string. Remove call to getopt() (but still do associated changes to argc/argv) Note: for now this is #if 0's out instead of being deleted, the old code should be fully removed sometime soon. Problem pointed out on tech-userlevel by Thierry Laronde.
Version | Delta | File | |
---|---|---|---|
1.49 | +14 | -3 | usr.bin/printf/printf.c |
+14 | -3 | 1 files |