[geos-devel] [GEOS] #887: Remove pre-release suffix from library name (libgeos-3.7.0alpha.so -> libgeos-3.7.0.so)

GEOS geos-trac at osgeo.org
Thu Jun 14 23:34:35 PDT 2018


#887: Remove pre-release suffix from library name (libgeos-3.7.0alpha.so ->
libgeos-3.7.0.so)
----------------------------+---------------------------
 Reporter:  Bas Couwenberg  |       Owner:  geos-devel@…
     Type:  defect          |      Status:  closed
 Priority:  major           |   Milestone:  3.7.0
Component:  Default         |     Version:  master
 Severity:  Unassigned      |  Resolution:  fixed
 Keywords:                  |
----------------------------+---------------------------

Comment (by robe):

 Might be my sed.

 When I tried:


 {{{
 echo "3.7.0alpha" | sed -E 's/(alpha|beta|rc)[[0-9]]*(dev)?$//'

 }}}

 I got this:


 {{{
 3.7.0alpha
 }}}


 I thought * too meant 0 or more, but seems to not be respecting the 0

 However this works:


 {{{
 $ echo "3.7.0alpha" | sed -E 's/(alpha|beta|rc)[0-9]*(dev)?$//'

 }}}

 Gives:

 3.7.0

 What's the purpose of the extra []?
 My sed version is: sed (GNU sed) 4.2.2


 I'd be happy to change it to if that works for you


 {{{
 's/(alpha|beta|rc)[0-9]*(dev)?$//'
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/geos/ticket/887#comment:6>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list