From: Jim Meyering Date: Tue, 3 Sep 1996 13:14:57 +0000 (+0000) Subject: this conforms to POSIX.2. From Paul Eggert . X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67d7048b9bc752642cdf8187f1480e83a6d0c66b;p=pspp this conforms to POSIX.2. From Paul Eggert . --- diff --git a/lib/rpmatch.c b/lib/rpmatch.c index eeda0fd60d..55d3bba13f 100644 --- a/lib/rpmatch.c +++ b/lib/rpmatch.c @@ -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)); }