apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55690] Linux kernel version check broken
Date Wed, 23 Oct 2013 21:22:42 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55690

--- Comment #7 from Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> ---
(In reply to Joe Orton from comment #4)
> Thanks - r1535157 - anything still broken?

It does not fix os_minor. You need to escape + character:

$ uname() { echo 3.0.5; }
$ os_major=`uname -r | sed -e 's/\([1-9][0-9]*\)\..*/\1/'`
$ os_minor=`uname -r | sed -e 's/[1-9][0-9]*\.\([0-9]+\)\..*/\1/'`
$ declare -p os_major os_minor
declare -- os_major="3"
declare -- os_minor="3.0.5"
$ os_minor=`uname -r | sed -e 's/[1-9][0-9]*\.\([0-9]\+\)\..*/\1/'`
$ declare -p os_major os_minor
declare -- os_major="3"
declare -- os_minor="0"

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message