summaryrefslogtreecommitdiff
path: root/lib/rpmatch.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-09-03 13:14:57 +0000
committerJim Meyering <jim@meyering.net>1996-09-03 13:14:57 +0000
commite3625e303265d32db9d66c0f2c5bd0f66a708b53 (patch)
treecdeaac5dac916e52064937e80489bc7bc7c9c3ee /lib/rpmatch.c
parent4c9586c01baacde0c635f10fae1bd4195a8499f7 (diff)
downloadcoreutils-e3625e303265d32db9d66c0f2c5bd0f66a708b53.tar.xz
this conforms to POSIX.2. From Paul Eggert <eggert@twinsun.com>.
Diffstat (limited to 'lib/rpmatch.c')
-rw-r--r--lib/rpmatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rpmatch.c b/lib/rpmatch.c
index eeda0fd60..55d3bba13 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));
}