guy@rlgvax.UUCP (Guy Harris) (02/28/85)
> 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
guy@rlgvax.UUCP (Guy Harris) (03/01/85)
> 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". False alarm. Sorry. That's not in the standard S5R2 shell, but it is in the BRL-modified shell (with Berkeley job control) that I run. Never mind. Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy