On Sat, 17 Apr 2010 23:25:53 +0200
Julien Valroff <jul...@kirya.net> wrote:

[...]

> Just one more...
> # mysql --version | sed -e "s:^.*Distrib[\t ]\{1,\}\([0-9.]*\).*:\1:g"
> 5.0.51
> 
> (ie. I have to drop ' -n -e "1,/./{//p;q}"')
> The complete output on Debian Lenny is:
> 
> # mysql --version
> mysql  Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 
> 5.2
> 
Okay, okay. Can you try to see if you get an accectable output from:
mysql --version|sed -n 's:^.*[\t ]Distrib[^0-9]*\([0-9.]*\).*:\1:p'
mysql_config --version|sed -n 's:^[^0-9]*\([0-9.]*\).*:\1:p'

I have pushed them into GIT. However I have tested both of them on various 
installations before pushing the changes to GIT.


FreeBSD 6.2-RELEASE
--------------------
# mysql --version
mysql  Ver 14.12 Distrib 5.0.45, for portbld-freebsd6.2 (i386) using  5.0
# mysql --version | sed -n 's:^.*[\t ]Distrib[^0-9]*\([0-9.]*\).*:\1:p'
5.0.45
# mysql_config --version | sed -n 's:^[^0-9]*\([0-9.]*\).*:\1:p'
5.0.45
#
--------------------


FreeBSD 7.0-RELEASE-p5
--------------------
# mysql --version
mysql  Ver 14.14 Distrib 5.1.44, for portbld-freebsd7.0 (i386) using  5.2
# mysql --version | sed -n 's:^.*[\t ]Distrib[^0-9]*\([0-9.]*\).*:\1:p'
5.1.44
# mysql_config --version | sed -n 's:^[^0-9]*\([0-9.]*\).*:\1:p'
5.1.44
#
--------------------


CentOS release 4.8 (Final)
--------------------
# mysql --version
mysql  Ver 14.12 Distrib 5.0.82sp1, for redhat-linux-gnu (x86_64) using 
readline 5.1
# mysql --version | sed -n 's:^.*[\t ]Distrib[^0-9]*\([0-9.]*\).*:\1:p'
5.0.82
# mysql_config --version | sed -n 's:^[^0-9]*\([0-9.]*\).*:\1:p'
5.0.82
#
--------------------


Gentoo Linux
--------------------
# mysql --version
mysql  Ver 14.14 Distrib 5.1.45, for pc-linux-gnu (i686) using readline 5.1
# mysql --version | sed -n 's:^.*[\t ]Distrib[^0-9]*\([0-9.]*\).*:\1:p'
5.1.45
# mysql_config --version | sed -n 's:^[^0-9]*\([0-9.]*\).*:\1:p'
5.1.45
#
--------------------


Gentoo Linux
--------------------
# mysql --version
mysql  Ver 14.14 Distrib 5.1.45, for pc-linux-gnu (x86_64) using readline 5.1
# mysql --version | sed -n 's:^.*[\t ]Distrib[^0-9]*\([0-9.]*\).*:\1:p'
5.1.45
# mysql_config --version | sed -n 's:^[^0-9]*\([0-9.]*\).*:\1:p'
5.1.45
#
--------------------


> Cheers,
> Julien
> 

-- 
Kind Regards from Switzerland,

Stevan Bajić

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to