octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #38270] miscellaneous package: units conversio


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #38270] miscellaneous package: units conversion from degC to K fails with units 1.0
Date: Mon, 21 Oct 2013 20:41:30 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130917 Firefox/17.0 Iceweasel/17.0.9

Follow-up Comment #13, bug #38270 (project octave):

The problem is that `units -v` will exit with 3 instead of 0. I have reported
this bug to Debian because I couldn't find a bug tracker for GNU units.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=726960

So we are using `command -v units` which apparently is a more standard way of
doing it anyway. How can you check this in windows? If you offer an
alternative, we could do

if (ispc())
  ## do what you suggest
else
  ## check with command -v
endif

The exit value of 127 comes from not finding a command. I guess I could that
to check if units is installed (exit with 127 if not available) but then what
if units is installed but fails for some other reason? I'd rather be checking
something for success than a single specific error.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38270>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]