[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Package to give away/orphan: GNU acct



> 
> Well, I wrote something simple in Perl for the last package, but Shaleh says
> it fails on his box.  What does /usr/sbin/compare_kernel_version say for you?
> [ Note that I turned the $debug flag on here: ]
> 
> edd@miles:~> /tmp/compare_kernel_version 2.0
> 2.2 ? 2.0
> 2.2 >= 2.0
> edd@miles:~> /tmp/compare_kernel_version 2.1  
> 2.2 ? 2.1
> 2.2 >= 2.1
> edd@miles:~> /tmp/compare_kernel_version 2.2
> 2.2 ? 2.2
> 2.2 >= 2.2
> edd@miles:~> /tmp/compare_kernel_version 2.3
> 2.2 ? 2.3
> 2.2 < 2.3
> 

I get the same output.  However:

compare_kernel_version 2.2 || echo "Died trying"

says "Died trying", where it should stop with the compare_kernel_version.  The
error appears to be the value of the return status, not the logic of "is this
kernel >, =, > this number".


Reply to: