diff options
author | Jim Meyering <jim@meyering.net> | 1996-09-03 13:14:57 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-09-03 13:14:57 +0000 |
commit | e3625e303265d32db9d66c0f2c5bd0f66a708b53 (patch) | |
tree | cdeaac5dac916e52064937e80489bc7bc7c9c3ee /lib | |
parent | 4c9586c01baacde0c635f10fae1bd4195a8499f7 (diff) | |
download | coreutils-e3625e303265d32db9d66c0f2c5bd0f66a708b53.tar.xz |
this conforms to POSIX.2. From Paul Eggert <eggert@twinsun.com>.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpmatch.c | 4 |
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)); } |