(decode_switches): Loop until optind hits ARGC, not just until getopt_long
authorRoland McGrath <roland@redhat.com>
Sat, 10 Sep 1994 07:01:10 +0000 (07:01 +0000)
committerRoland McGrath <roland@redhat.com>
Sat, 10 Sep 1994 07:01:10 +0000 (07:01 +0000)
commit03cd08cca2cdbff4fa6ce254eb219376727c8bdb
tree545cf05090967fac37f6390f290c75ba245e3828
parentdc44a790201a437991b9668c31a5c53fae6d97b8
(decode_switches): Loop until optind hits ARGC, not just until getopt_long
returns EOF.  Initialize C to zero before loop; in loop if C is EOF, set
optarg from ARGV[optind++], else call getopt_long.
(decode_env_switches): Use variable_expand instead of
allocated_variable_expand.  Allocate a fresh buffer to copy split words
into; scan characters by hand to break words and debackslashify.
(shell_quote): New function.
(define_makeflags): Allocate doubled space for switch args, and command
variable names and values; use shell_quote to quote those things.
main.c