Branch: Tag:

2002-03-07

2002-03-07 23:55:21 by Martin Stjernholm <mast@lysator.liu.se>

Fixed a bug where an option on the short form taking a value could get the
string value "" instead of 1.

Rev: lib/modules/Getopt.pmod:1.18

173:    value=arg;    arg="";    } +  if (value == "") value = 1;    } else {    value=1;    }
378:    }    }    +  if (arg == "") arg = 0;    ret+=({ ({ option[0], arg || 1 }) });    }    }