Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] grimoire function to check minimum kernel ver

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: sqweek <sqweek AT gmail.com>
  • To: iuso AT sourcemage.org
  • Cc: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] grimoire function to check minimum kernel ver
  • Date: Tue, 4 Apr 2006 22:02:55 +0800

Juuso Alasuutari wrote:
> Also the first version of the function was bloated as hëll because I hadn't
> yet realized how well [[ ]] handles variable comparison. Silly me.

Unfortunately [[ ]] on "2.6.15" style variables just seems to do a
lexical comparison. Example:

~/$ [[ 2.6.15 < 2.6.2 ]] && echo yeah
yeah

But 2.6.15 is clearly a later version than 2.6.2.




Archive powered by MHonArc 2.6.24.

Top of Page