• Paul John King's avatar
    Fixed OPTIND bug and tidied up -- · 425b35e9
    Paul John King authored
    The shell initialises global variable OPTIND to 1 on start up. In order to use
    getopts in functions, OPTIND must be reinitialised before calling getopts. In
    bash, it suffices to make OPTIND local, but in busybox, OPTIND must also be set
    to 1.
    
    I also fixed a few formatting slips.
    425b35e9
Name
Last commit
Last update
kvm_tool Loading commit data...