Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site rlgvax.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!rlgvax!guy
From: guy@rlgvax.UUCP (Guy Harris)
Newsgroups: net.unix-wizards,net.bugs.usg
Subject: Re: Bug in regex(3)? (and bug in sh(1))
Message-ID: <527@rlgvax.UUCP>
Date: Thu, 28-Feb-85 12:15:32 EST
Article-I.D.: rlgvax.527
Posted: Thu Feb 28 12:15:32 1985
Date-Received: Sat, 2-Mar-85 03:13:42 EST
References: <104@cfib.UUCP>
Organization: CCI Office Systems Group, Reston, VA
Lines: 16
Xref: watmath net.unix-wizards:12225 net.bugs.usg:184

> Has anybody had trouble with regcmp(3)/regex(3)?  I seem to have found a bug
> in handling expressions with breakout strings - regex corrupts the subject
> string pointed to by the second arg.

I tried it on our VAX with the System V version of "regex", and it worked
OK.  However, I did discover an amusing shell bug by accident; I mistyped
"sh -x stuff.sh >>stuff" (a test script) as "sh .x stuff.sh >>stuff", and
got

	: : cannot open

and got ".x.x" at the end of "stuff".  Looks like it's confused about what
should be written to standard output and standard error...

	Guy Harris
	{seismo,ihnp4,allegra}!rlgvax!guy