[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Yet Another test option
From: |
Bruce Korb |
Subject: |
Yet Another test option |
Date: |
Sat, 02 Jul 2011 12:49:04 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10 |
Hi Chet, et al.,
Given that sort(1GNU) now has a sort-by-version-ordering (sort -V),
it would seem reasonable to do version comparisons without having
to do a series of fork & execs. In other words, abbreviate this:
min_os_ver=`
printf '2.6.27\n%s\n' "$LINUXRELEASE" | sort -V | head -1`
if test "X$min_os_ver" = "X2.6.27" ; then
into something like this:
if test "2.6.27" -Vle "$LINUXRELEASE" ; then
or add a different operator to [[ ]] contexts?
- Yet Another test option,
Bruce Korb <=
- Re: Yet Another test option, Chet Ramey, 2011/07/03
- Re: Yet Another test option, Bruce Korb, 2011/07/03
- Re: Yet Another test option, Bob Proulx, 2011/07/03
- Re: Yet Another test option, Greg Wooledge, 2011/07/05
- Re: Yet Another test option, Bruce Korb, 2011/07/05
- Re: Yet Another test option, Chet Ramey, 2011/07/06
- Message not available
- Message not available
- Message not available
- Re: Yet Another test option, Eric Blake, 2011/07/06
- Re: Yet Another test option, Bruce Korb, 2011/07/06
- Re: Yet Another test option, Chet Ramey, 2011/07/06