bugGNU Octave - Bugs: bug #50294, version('-release') has no result

 
 

bug #50294: version('-release') has no result

Submitted by:  Georg Wiora <gwiora>
Submitted on:  Mon 13 Feb 2017 02:53:44 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: gwioraOpen/Closed: Closed
Release: 4.2.0Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 15 Feb 2017 12:10:36 AM UTC, comment #3:

I made a change on the stable branch to document that -release always returns an empty string, just like -description:

https://hg.savannah.gnu.org/hgweb/octave/rev/41a01755a7b9

If there are compelling reasons for raising an error or a warning in this case, that can be added separately, but I don't see that as a useful thing to do at the moment.

Mike Miller <mtmiller>
Project Administrator
Tue 14 Feb 2017 07:46:23 AM UTC, comment #2:

Changing the documentation would basically be an acceptable solution for me.

I just wonder if it may be more suitable here to issue a warning or even an error message when using the '-release' option in Octave, because it does not produce the expected result any way and therefore needs a code adaption to make matlab code compatible to octave.

I suggest to issue the following warning text:

Georg Wiora <gwiora>
Mon 13 Feb 2017 08:02:18 PM UTC, comment #1:

In bug #45659, support was added for various options to the version command. It was decided and specifically implemented that -release returns an empty string. So the option is recognized for Matlab compatibility, but the result is an empty string so it does not match any Matlab release numbers.

We could explicitly mention in the help for version that -release returns an empty string for Octave, would that help address what you see as a problem?

Mike Miller <mtmiller>
Project Administrator
Mon 13 Feb 2017 02:53:44 PM UTC, original submission:

Calling the following has no result in octave:
Documentation states it should return "the name of the running build".

In matlab the "-release" option causes version to return "release number for the MATLAB software currently running". This is what octave returns without argument. Example:

I guess it would not be a good idea to return the release number of octave here because matlab code would not work as expected anyway. I suggest to give the return value written in the octave documentation. This could force matlab code normally into an error and therefore help to adapt it to a more protable behaviour.

Georg Wiora <gwiora>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by gwiora (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 15 Feb 2017 12:10:36 AM UTCmtmillerStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Mon 13 Feb 2017 11:44:27 PM UTCrik5Carbon-CopyRemoved 72865=>-
    Mon 13 Feb 2017 11:44:13 PM UTCrik5Item GroupIncorrect Result=>Matlab Compatibility
      Operating SystemMicrosoft Windows=>Any
    Mon 13 Feb 2017 08:02:18 PM UTCmtmillerStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1