Add notes on our globs' incompatibilities with POSIX
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Tue, 27 Apr 2004 12:52:34 +0000 (12:52 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Tue, 27 Apr 2004 12:52:34 +0000 (12:52 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@4149 cda61777-01e9-0310-a592-d414129be87e

wildcard.c

index a09f2c1..ae8bad8 100644 (file)
  */
 
 /*
+ * 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
  * potentially O(N^2) in running time, but I don't anticipate it
  * being that bad in reality (particularly since N will be the size