Updated to BSD4.4lite2. Fixes PR836. `echo abcd | tr a-d A-BC-D' now

works.
This commit is contained in:
Bruce Evans 1995-11-28 13:18:47 +00:00
parent b2b028bab9
commit 67a8a10b9c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12505

View File

@ -32,7 +32,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)str.c 8.1 (Berkeley) 6/6/93";
static char sccsid[] = "@(#)str.c 8.2 (Berkeley) 4/28/95";
#endif /* not lint */
#include <sys/cdefs.h>
@ -241,8 +241,8 @@ genrange(s)
char *savestart;
savestart = s->str;
stopval = *++s->str == '\\' ? backslash(s) : *s->str;
if (stopval < s->lastch) {
stopval = *++s->str == '\\' ? backslash(s) : *s->str++;
if (stopval < (u_char)s->lastch) {
s->str = savestart;
return (0);
}