=== modified file 'uspace/app/bdsh/cmds/modules/cat/cat.c'
|
|
|
323 | 323 | |
324 | 324 | argc = cli_count_args(argv); |
325 | 325 | |
326 | | for (c = 0, optind = 0, opt_ind = 0; c != -1;) { |
| 326 | for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { |
327 | 327 | c = getopt_long(argc, argv, "xhvmH:t:b:s:n", long_options, &opt_ind); |
328 | 328 | switch (c) { |
329 | 329 | case 'h': |
=== modified file 'uspace/app/bdsh/cmds/modules/cmp/cmp.c'
|
|
|
129 | 129 | |
130 | 130 | argc = cli_count_args(argv); |
131 | 131 | |
132 | | for (c = 0, optind = 0, opt_ind = 0; c != -1;) { |
| 132 | for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { |
133 | 133 | c = getopt_long(argc, argv, "hv", long_options, &opt_ind); |
134 | 134 | switch (c) { |
135 | 135 | case 'h': |
=== modified file 'uspace/app/bdsh/cmds/modules/cp/cp.c'
|
|
|
456 | 456 | con = console_init(stdin, stdout); |
457 | 457 | argc = cli_count_args(argv); |
458 | 458 | |
459 | | for (c = 0, optind = 0, opt_ind = 0; c != -1;) { |
| 459 | for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { |
460 | 460 | c = getopt_long(argc, argv, "hvVfirb:", long_options, &opt_ind); |
461 | 461 | switch (c) { |
462 | 462 | case 'h': |
=== modified file 'uspace/app/bdsh/cmds/modules/ls/ls.c'
|
|
|
361 | 361 | |
362 | 362 | argc = cli_count_args(argv); |
363 | 363 | |
364 | | for (c = 0, optind = 0, opt_ind = 0; c != -1;) { |
| 364 | for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { |
365 | 365 | c = getopt_long(argc, argv, "hur", long_options, &opt_ind); |
366 | 366 | switch (c) { |
367 | 367 | case 'h': |
=== modified file 'uspace/app/bdsh/cmds/modules/mkdir/mkdir.c'
|
|
|
172 | 172 | |
173 | 173 | argc = cli_count_args(argv); |
174 | 174 | |
175 | | for (c = 0, optind = 0, opt_ind = 0; c != -1;) { |
| 175 | for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { |
176 | 176 | c = getopt_long(argc, argv, "pvhVfm:", long_options, &opt_ind); |
177 | 177 | switch (c) { |
178 | 178 | case 'p': |
=== modified file 'uspace/app/bdsh/cmds/modules/mkfile/mkfile.c'
|
|
|
125 | 125 | |
126 | 126 | argc = cli_count_args(argv); |
127 | 127 | |
128 | | for (c = 0, optind = 0, opt_ind = 0; c != -1;) { |
| 128 | for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { |
129 | 129 | c = getopt_long(argc, argv, "ps:h", long_options, &opt_ind); |
130 | 130 | switch (c) { |
131 | 131 | case 'h': |
=== modified file 'uspace/app/bdsh/cmds/modules/mount/mount.c'
|
|
|
116 | 116 | |
117 | 117 | argc = cli_count_args(argv); |
118 | 118 | |
119 | | for (c = 0, optind = 0, opt_ind = 0; c != -1;) { |
| 119 | for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { |
120 | 120 | c = getopt_long(argc, argv, "i:h", long_options, &opt_ind); |
121 | 121 | switch (c) { |
122 | 122 | case 'h': |
=== modified file 'uspace/app/bdsh/cmds/modules/rm/rm.c'
|
|
|
260 | 260 | return CMD_FAILURE; |
261 | 261 | } |
262 | 262 | |
263 | | for (c = 0, optind = 0, opt_ind = 0; c != -1;) { |
| 263 | for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { |
264 | 264 | c = getopt_long(argc, argv, "hvrfs", long_options, &opt_ind); |
265 | 265 | switch (c) { |
266 | 266 | case 'h': |
=== modified file 'uspace/app/bdsh/cmds/modules/touch/touch.c'
|
|
|
89 | 89 | |
90 | 90 | DIR *dirp; |
91 | 91 | |
92 | | for (c = 0, optind = 0, longind = 0; c != -1; ) { |
| 92 | for (c = 0, optreset = 1, optind = 0, longind = 0; c != -1; ) { |
93 | 93 | c = getopt_long(argc, argv, "c", long_options, &longind); |
94 | 94 | switch (c) { |
95 | 95 | case 'c': |