Bug 4520 - Exit status wildcards
Exit status wildcards
Status: RESOLVED WORKSFORME
Product: jbatch
Classification: Unclassified
Component: source
1
PC Linux
: P5 normal
: ---
Assigned To: cvignola
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-16 21:47 UTC by geofjamg
Modified: 2013-01-17 14:40 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description geofjamg 2013-01-16 21:47:36 UTC
Is there any reason not relying on a standard regex (very easy to implement with String.matches) instead of a custom matching system?
Comment 1 ScottKurz 2013-01-16 22:39:29 UTC
The current behavior is a form of globbing, so it's not as if it's uniquely custom to JSR 352. 

Glob patterns seem simpler to work with for simple cases 

E.g.
 A*B 
instead of 
 A.*B

so if you're not expecting JSL authors to take full advantage of regex(s), then 
I can see an advantage with globbing.   

I'd actually originally suggest we be explicit that there would be no backslash escaping, which isn't in the spec. 

Wikipedia has a nice breakdown of different globbing patterns:
 http://en.wikipedia.org/wiki/Glob_%28programming
and does show that there isn't a single, standard "glob" behavior.
Comment 2 cvignola 2013-01-17 14:40:44 UTC
We're sticking with the globbing approach.