[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFA]: Broken sed on solaris
From: |
Nicola Pero |
Subject: |
Re: [RFA]: Broken sed on solaris |
Date: |
Sun, 6 Jul 2003 13:19:42 +0100 (BST) |
> sed on solaris is broken or does not seem to work the way other sed's
> work. For instance in computing the gcc major version in gnustep-make
>
> `${CC} -dumpversion | sed
> "s/\(^[[^0-9]]*\)\([[0-9]][[0-9]]*\)\([[^0-9]].*\)/\2/"
>
> Solaris doesn't like the initial '^' (matches the beginning of the line)
> and so the output isn't changed at all. Just removing this fixes the
> problem. I don't really know a lot about this, but it doesn't seem to
> really be necessary anyway. Am I missing something or can I just remove
> this?
Thanks - yes (judging by the examples of output of 'gcc -dumpversion'
quoted in the comment) I think you can remove it.