On Sun, 18 Apr 2010 13:57:16 +0200 Julien Valroff <jul...@kirya.net> wrote:
> 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). > Can I ask you one thing regarding Debian? Is the Bash shell installed by default on Debian? I plan to switch from /bin/sh to /bin/bash. The reason for that is that /bin/sh on FreeBSD is a shell like csh or ksh and I am not really interested in porting the whole script to be runnable under csh or ksh. I never really planed/expected to be able to have that little script to be runnable on anything other then Gentoo. Anyway... if I would ever redo that script then I would code it in Perl. Allone those differences in GNU sed and the one installed on FreeBSD is frustating. Let allone the other differences. With Perl I would not have those problems. Anyway... I have changed the script to cope with those limits I have seen on FreeBSD 6.2-RELEASE by using 'tr' instead of sed in some situations. I have still not commited those changes to GIT. I wait till you tell me that Debian has Bash installed by default. > Cheers, > Julien > -- Kind Regards from Switzerland, Stevan Bajić ------------------------------------------------------------------------------ Download Intel® 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