On Monday 23 February 2009 07:50:30 Eric Blake wrote: > According to Mike Frysinger on 2/22/2009 10:03 PM: > > previous versions of bash would happily accept negative values ( treated > > as a signed integer and masked with like 0xff), but it seems some changes > > related to option parsing has broken that > > > > $ f(){ return -1; }; f > > -bash: return: -1: invalid option > > return: usage: return [n] > > What about 'return -- -1'?
that does indeed work. thanks for pointing out the obvious which i missed ;). -mike
signature.asc
Description: This is a digitally signed message part.