sed misbehaving?

Marian Hettwer mh at kernel32.de
Mon Aug 27 04:27:50 PDT 2007


Hi Danny,


On Mon, 27 Aug 2007 13:58:04 +0300, Danny Braniss <danny at cs.huji.ac.il> wrote:
> Since noone is complaining, this must be an oversite on my part, but
> 	echo 'ABC'|sed 's/a/z/'
> results in
> 	zBC
That's odd.
My sed isn't case insensitive:

([mhettwer at blowfish] <~> $ echo 'ABC' | sed 's/a/z/'
ABC
versus:
([mhettwer at blowfish] <~> $ echo 'ABC' | sed 's/A/z/'
zBC

Well, I'm not using current... so I don't know wether the sed version has changed...
([mhettwer at blowfish] <~> $ uname -a
FreeBSD blowfish 6.2-STABLE FreeBSD 6.2-STABLE #3: Wed Jul  4 12:43:22 CEST 2007     root at blowfish:/usr/obj/usr/src/sys/BLOWFISH  i386

regards,
Marian



More information about the freebsd-current mailing list