Just saw Per's checkin (781fcde2) in 8.1:
Extended glob pattern syntax: o \ can now be used to quote special characters in the pattern o [ can be used for ranges of characters ([bx] [a-c0-9] [^a] etc).
Also changed glob to return the matching glob instead of 1 when an array is passed as the first (pattern) argument.
This can be used to remove some loops where you want to do different things depending on which pattern matched.
Both these changes are incompatible.
Can we please put this in a new method or use opt-in with an extra flag? I'm not too worried about the return value, but the changes in glob parsing sound problematic to me.
At least for our customers there are plenty of globs in user data (RXML code, system configs, custom modules etc) that could misbehave silently, i.e. without producing compile-time errors.
pike-devel@lists.lysator.liu.se