On Tue, Apr 11, 2017 at 11:58 PM, Kaarle Ritvanen
<kaarle.ritva...@datakunkku.fi> wrote:
> -execcmd(int argc UNUSED_PARAM, char **argv)
> +execcmd(int argc, char **argv)
>  {
> -       if (argv[1]) {
> +       int opt;
> +       char *argv0 = NULL;
> +       char *cmdname = NULL;
> +
> +       GETOPT_RESET
> +       while ((opt = getopt(argc, argv, "a:")) != -1)

(1) The rest of ash does not use getopt().

(2) Did you test this with, say, "exec stty -a" command?

I committed a change which implements "exec -a"
in a slightly different way. Please try current git.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to