matejak / argbash

Bash argument parsing code generator
Other
1.4k stars 62 forks source link

parse_commandline: _key should be local? #181

Open lingo opened 1 year ago

lingo commented 1 year ago

In generated code:

parse_commandline()
{
    _positionals_count=0
    while test $# -gt 0
    do
        _key="$1"
          #...

Shouldn't _key be declared as a local ?