sed misbehaving?

Julian Stacey jhs at berklix.org
Mon Aug 27 04:31:57 PDT 2007


Danny Braniss wrote:
> Since noone is complaining, this must be an oversite on my part, but
> 	echo 'ABC'|sed 's/a/z/'
> results in
> 	zBC
> what did i miss?
> 
> thanks,
> 	danny

OK, i recognise you posted current@, but here:
	uname -r
	6.2-RELEASE
	echo 'ABC'|sed 's/a/z/'
	ABC

Maybe you have an env. var. such as EXINIT or some ~/.* or /etc/*
initialiser file that's doing the equivalent of 	vi 	:se ic	?
I know you'r talking sed, not vi,
but man vi FILES gives hints of places to look for similar thing such as eg
	/etc/vi.exrc
	$HOME/.nexrc
	$HOME/.exrc
	`pwd`/.nexrc
	`pwd`/.exrc

-- 
Julian Stacey. Munich Computer Consultant, BSD Unix C Linux. http://berklix.com
	Ihr Rauch=mein allergischer Kopfschmerz. Dump cigs 4 snuff.


More information about the freebsd-current mailing list