mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Add notes on our globs' incompatibilities with POSIX
[originally from svn r4149]
This commit is contained in:
parent
bdfd70375b
commit
bb6532810b
11
wildcard.c
11
wildcard.c
@ -29,6 +29,17 @@
|
|||||||
* - All other characters are non-special and match themselves.
|
* - All other characters are non-special and match themselves.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Some notes on differences from POSIX globs (IEEE Std 1003.1, 2003 ed.):
|
||||||
|
* - backslashes act as escapes even within [] bracket expressions
|
||||||
|
* - does not support [!...] for non-matching list (POSIX are weird);
|
||||||
|
* NB POSIX allows [^...] as well via "A bracket expression starting
|
||||||
|
* with an unquoted circumflex character produces unspecified
|
||||||
|
* results". If we wanted to allow [!...] we might want to define
|
||||||
|
* [^!] as having its literal meaning (match '^' or '!').
|
||||||
|
* - none of the scary [[:class:]] stuff, etc
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The wildcard matching technique we use is very simple and
|
* The wildcard matching technique we use is very simple and
|
||||||
* potentially O(N^2) in running time, but I don't anticipate it
|
* potentially O(N^2) in running time, but I don't anticipate it
|
||||||
|
Loading…
Reference in New Issue
Block a user