this conforms to POSIX.2. From Paul Eggert <eggert@twinsun.com>.
authorJim Meyering <jim@meyering.net>
Tue, 3 Sep 1996 13:14:57 +0000 (13:14 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 3 Sep 1996 13:14:57 +0000 (13:14 +0000)
lib/rpmatch.c

index eeda0fd..55d3bba 100644 (file)
@@ -74,8 +74,8 @@ rpmatch (response)
   static regex_t yesre, nore;
   int result;
 
-  return ((result = try (response, _("^[yY][[:alpha:]]*"), 1, 0,
+  return ((result = try (response, _("^[yY]"), 1, 0,
                         &yesexpr, &yesre))
          ? result
-         : try (response, _("^[nN][[:alpha:]]*"), 0, -1, &noexpr, &nore));
+         : try (response, _("^[nN]"), 0, -1, &noexpr, &nore));
 }