Bugzilla – Full Text Bug Listing
|Summary:||Exit status globbing tweaks suggested|
Description ScottKurz 2012-09-04 14:35:57 UTC
For exit status pattern-matching (in decisions) we have (Sec 5.2.5 and several other similar places): ...Specifies an exit status to match to the current next element. It must be a valid XML string value. Wildcards of "*" and "?" may be used. "*" matches one or more characters. "?" matches exactly one character..... Three comments: A) The typical behavior in globbing for Ant, shell, etc. is for "*" to match zero or more characters, rather than one or more. I think "one or more" is surprising. B) Since the majority (though not all) glob impls seem to support backslash escaping... it would only help clarify to point out that this is not supported. (I don't see the need for escaping either since by the time you're in JSL you're not trying to defer a wildcard expansion to some other processing... you're already at the end of the line). C) It would also only help to state that multiple "*" and "?" chars are allowed in the pattern string, with combinations of the two. I think this is a more obvious thing to assume, in contrast to B), so could be omitted for brevity.
Comment 1 cvignola 2012-10-05 17:16:05 UTC
I agree with all three recommendations and will incorporate them into the next draft of the spec.
Comment 2 cvignola 2013-01-16 16:19:45 UTC
actually spec was updated with recommendation of item A) only