bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFA]: Broken sed on solaris


From: Adam Fedor
Subject: [RFA]: Broken sed on solaris
Date: Sat, 05 Jul 2003 21:26:35 -0600
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.1) Gecko/20020905

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?


--
Adam Fedor, Digital Optics Corp.      | I'm glad I hate spinach, because
http://www.doc.com                    | if I didn't, I'd eat it, and you
                                      | know how I hate the stuff.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]