Hi Stevan,

Le dimanche 18 avril 2010 à 00:37 +0200, Stevan Bajić a écrit :
> 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.

[...]

I confirm it does work on Debian as well, thanks a lot for your help:

$ mysql --version
mysql  Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2
$ mysql --version | sed -n 's:^.*[\t ]Distrib[^0-9]*\([0-9.]*\).*:\1:p'
5.0.51
$ mysql_config --version
5.1.45
$ mysql_config --version | sed -n 's:^[^0-9]*\([0-9.]*\).*:\1:p'
5.1.45

(don't worry about the version, I have installed a backport of
libmysqlclient-dev to have mysql_config).

Cheers,
Julien



------------------------------------------------------------------------------
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