rename "-f" (fake) option to "-n" to match POSIX
This commit is contained in:
parent
d006edb2ca
commit
a71cfa8aa1
@ -4238,7 +4238,7 @@ int hush_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
input = stdin;
|
input = stdin;
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "c:xif")) > 0) {
|
while ((opt = getopt(argc, argv, "c:xin")) > 0) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'c':
|
case 'c':
|
||||||
G.global_argv = argv + optind;
|
G.global_argv = argv + optind;
|
||||||
@ -4255,7 +4255,7 @@ int hush_main(int argc, char **argv)
|
|||||||
* we have to have some stuff (ctty, etc) */
|
* we have to have some stuff (ctty, etc) */
|
||||||
/* G.interactive_fd++; */
|
/* G.interactive_fd++; */
|
||||||
break;
|
break;
|
||||||
case 'f':
|
case 'n':
|
||||||
G.fake_mode = 1;
|
G.fake_mode = 1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user