> Machine Type: mips-sgi-irix6.5 > > Bash Version: 3.2 > Patch Level: 0 > Release Status: release > > Description: > ============ > scripterror (source below) is a function that > puts the argument of option m in variable 'message' > puts the argument of option M in variable `testText' > > but as you can see, if i supply both options, the argument for -M has gone > into the argument for -m instead: > > # -bash 37 > scripterror -m messagetext -M testtext > testItem= > message=testtext > Warning: in -bash: testtext
I can't reproduce this. You might try putting an `echo $opt' before the case statement to see what getopts is returning. It might be that you have the option that causes `case' to do case-insensitive matching enabled. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://tiswww.tis.case.edu/~chet/