As per a discussion on the mailing list between Matt and Pavel. I have removed

the -V (version) flag from busybox sed. It is unnecessary because sed is not a
standalone and should therefore be independently reporting a version number.
Moreover, it is extra code that we just don't need.
This commit is contained in:
Mark Whitley 2000-07-20 23:08:40 +00:00
parent 1ac435c15e
commit 1f45b268cb
2 changed files with 2 additions and 10 deletions

View File

@ -672,12 +672,8 @@ extern int sed_main(int argc, char **argv)
#endif #endif
/* do normal option parsing */ /* do normal option parsing */
while ((opt = getopt(argc, argv, "Vhne:f:")) > 0) { while ((opt = getopt(argc, argv, "hne:f:")) > 0) {
switch (opt) { switch (opt) {
case 'V':
printf("%s\n", full_version);
exit(0);
break;
case 'h': case 'h':
usage(sed_usage); usage(sed_usage);
break; break;

6
sed.c
View File

@ -672,12 +672,8 @@ extern int sed_main(int argc, char **argv)
#endif #endif
/* do normal option parsing */ /* do normal option parsing */
while ((opt = getopt(argc, argv, "Vhne:f:")) > 0) { while ((opt = getopt(argc, argv, "hne:f:")) > 0) {
switch (opt) { switch (opt) {
case 'V':
printf("%s\n", full_version);
exit(0);
break;
case 'h': case 'h':
usage(sed_usage); usage(sed_usage);
break; break;