From owner-freebsd-bugs Wed Sep 6 23:41:29 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.11/8.6.6) id XAA04543 for bugs-outgoing; Wed, 6 Sep 1995 23:41:29 -0700 Received: from wcarchive.cdrom.com (wcarchive.cdrom.com [192.216.191.11]) by freefall.freebsd.org (8.6.11/8.6.6) with ESMTP id XAA04530 for ; Wed, 6 Sep 1995 23:41:28 -0700 Received: from mail.barrnet.net (mail.barrnet.net [131.119.246.7]) by wcarchive.cdrom.com (8.6.11/8.6.9) with ESMTP id XAA07087 for ; Wed, 6 Sep 1995 23:43:30 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by mail.barrnet.net (8.6.10/MAIL-RELAY-LEN) with ESMTP id XAA24966 for ; Wed, 6 Sep 1995 23:41:22 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id IAA12259; Thu, 7 Sep 1995 08:38:36 +0200 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id IAA12302; Thu, 7 Sep 1995 08:38:35 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id IAA08009; Thu, 7 Sep 1995 08:38:09 +0200 From: J Wunsch Message-Id: <199509070638.IAA08009@uriah.heep.sax.de> Subject: Re: sed bug? To: hobbit@avian.org (*Hobbit*) Date: Thu, 7 Sep 1995 08:38:08 +0200 (MET DST) Cc: freebsd-bugs@wcarchive.cdrom.com Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199509062155.RAA08173@narq.avian.org> from "*Hobbit*" at Sep 6, 95 05:55:24 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 738 Sender: bugs-owner@FreeBSD.org Precedence: bulk As *Hobbit* wrote: > > I have stumbled across an inconsistency in FreeBSD 'sed'. On every other > platform I have access to, the regex `/[/|]/' to mean "slash or pipe" is valid, > but the FreeBSD version errors out on this. Trying to quote the embedded > slash, a la `/[\/|]/', avoids the error, but that breaks on other systems > that match on `\` as well. One or the other is clearly wrong. Been there before, it looks suspicious, but even Posix is not quite clear on this. One things that is always supposed to work is using a different pair of delimiters, e.g. ':[/|]:' in your case. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)