You mean perseus=; is your prompt? Strange.

Actually sed is a line based command and should add a newline, imho. You can 
simply use tr -d '\n'.

There are several quoting differences between plan9 sed and linux sed and I 
think the \+ operator doesn't work anyway in linux sed, but I might be wrong 
with this statement.

cheers,
ingo

> Hello,
> 
> is this as expected?
> 
> perseus=; echo -n aaa | 9 sed 's/^/</' |tr -d '\n'
> <aaa
> perseus=; echo -n aaa | sed 's/^/</'
> <aaaperseus=;
> 
> 
> For me the linux sed does what I expect,
> but not the p9p one (it adds a newline). Why?
> 
> Thanks!
> Ruda



Reply via email to