On Fri, Feb 23, 2018 at 12:29:28PM +0800, Eryu Guan wrote: > On Fri, Feb 23, 2018 at 02:54:54PM +1100, Dave Chinner wrote: > > From: Dave Chinner <dchinner@xxxxxxxxxx> > > > > According to the bash man page: > > > > OPTIND is initialized to 1 each time the shell or a shell > > script is invoked. > > > > This doesn't appear to be true - in tests scripts with no other > > getopts calls, I'm seeing the getopts loop in _xfs_check to fail > > to parse input parameters correctly. Tracing shows the parameters > > are being passed to _xfs_check correctly, but on occassion getopts > > simply doesn't see the, > > Hmm, unfinished sentence here? Typo. "simply doesn't see them." Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html