Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Sep 1995 08:38:08 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        hobbit@avian.org (*Hobbit*)
Cc:        freebsd-bugs@wcarchive.cdrom.com
Subject:   Re: sed bug?
Message-ID:  <199509070638.IAA08009@uriah.heep.sax.de>
In-Reply-To: <199509062155.RAA08173@narq.avian.org> from "*Hobbit*" at Sep 6, 95 05:55:24 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509070638.IAA08009>