Colin Watson (2003-03-04 14:06:07 +0000) :

> On Tue, Mar 04, 2003 at 02:14:59PM +0100, Bastian Kleineidam wrote:

[...]

>> # example: current bash version number
>> BASH_VERSION=`grep-available -P -s Version -n -r '^bash$'`
>
> That will be wrong in the event that somebody has run 'dselect
> update' but not yet upgraded.

  How about the following?
BASH_VERSION=$(dpkg -s bash | awk '/^Version:/ { print $2 }')

Roland.
-- 
Roland Mas

Il vaut mieux insulter une commode Louis XV qu'une armoire à glace.

Reply via email to