One of the reasons that I was advocating using the globbing feature of "case" was to avoid the nasty sed expression.
Just do: case "`uname -r`" in 3.4*) disable-threads ;; esac Cheers, -g On Thu, Jan 11, 2001 at 09:36:35AM -0500, Jeff Trawick wrote: > The check isn't working right on on FreeBSD 3.4-RELEASE. > > Here is what the code to get the version string yields because > `uname -r` isn't matched by the sed script. > > [EMAIL PROTECTED] httpd-2.0]$ uname -r | sed -e 's/\(.\)\.\(.\)\..*/\1\2/' > 3.4-RELEASE > > test simply bails out with this error message: > > test: 3.4-RELEASE: bad number > > I could add another step to the pipeline to standardize other version > string formats > > uname -r | sed -e 's/\(.\)\.\(.\)\..*/\1\2/' | sed -e > 's/\(.\)\.\(.\)\-.*/\1\2/' > > Ryan (or anybody else), what is a real-life example of `uname -r` output which > the existing sed substitution handles? I'll make sure that example as > well as my 3.4-RELEASE example works before committing a change. > > Thanks... > -- > Jeff Trawick | [EMAIL PROTECTED] | PGP public key at web site: > http://www.geocities.com/SiliconValley/Park/9289/ > Born in Roswell... married an alien... -- Greg Stein, http://www.lyra.org/