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:
parent
1ac435c15e
commit
1f45b268cb
@ -672,12 +672,8 @@ extern int sed_main(int argc, char **argv)
|
||||
#endif
|
||||
|
||||
/* do normal option parsing */
|
||||
while ((opt = getopt(argc, argv, "Vhne:f:")) > 0) {
|
||||
while ((opt = getopt(argc, argv, "hne:f:")) > 0) {
|
||||
switch (opt) {
|
||||
case 'V':
|
||||
printf("%s\n", full_version);
|
||||
exit(0);
|
||||
break;
|
||||
case 'h':
|
||||
usage(sed_usage);
|
||||
break;
|
||||
|
6
sed.c
6
sed.c
@ -672,12 +672,8 @@ extern int sed_main(int argc, char **argv)
|
||||
#endif
|
||||
|
||||
/* do normal option parsing */
|
||||
while ((opt = getopt(argc, argv, "Vhne:f:")) > 0) {
|
||||
while ((opt = getopt(argc, argv, "hne:f:")) > 0) {
|
||||
switch (opt) {
|
||||
case 'V':
|
||||
printf("%s\n", full_version);
|
||||
exit(0);
|
||||
break;
|
||||
case 'h':
|
||||
usage(sed_usage);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user