Menu

#413 SysVersion() output could be enhanced

None
open
nobody
None
5
2012-08-22
2010-12-27
No

It is difficult to call it an error, because the Reference just specifies "... the rest of the string contains a operating specific version string".
However the dot connecting time zone and kernel version doesn't make sense (see below).

Could you consider whether
- the output of SysVersion() should be the same as 'uname -svr'
- the architecture should be included ('uname -m')
- the Reference should be adapted a little bit.


Console output:

uli@ulmo:~> rexxtry.rex
REXX-ooRexx_4.1.0(MT) 6.03 3 Dec 2010
rexxtry.rex lets you interactively try REXX statements.
Each string is executed when you hit Enter.
Enter 'call tell' for a description of the features.
Go on - try a few... Enter 'exit' to end.
say syslinver()
Linux 2.6.34.7-0.5-desktop
............................................... rexxtry.rex on LINUX
say sysversion()
Linux #1 SMP PREEMPT 2010-10-25 08:40:12 +0200.2.6.34.7-0.5-desktop
............................................... rexxtry.rex on LINUX
'uname -svr'
Linux 2.6.34.7-0.5-desktop #1 SMP PREEMPT 2010-10-25 08:40:12 +0200
rc = 0 ........................................ rexxtry.rex on LINUX
parse version version; say version
REXX-ooRexx_4.1.0(MT) 6.03 3 Dec 2010

Discussion

  • Mark Miesfeld

    Mark Miesfeld - 2012-02-06

    I looked at this and the output is intended. The function takes the information provided by a call to uname() and then formats the output using the utsname struct as:

    utsname.sysname utsname.version.utsname.release

    So, I'm going to change this bug to a RFE instead. This will accomadate:

    Could you consider whether
    - the output of SysVersion() should be the same as 'uname -svr'
    - the architecture should be included ('uname -m')
    - the Reference should be adapted a little bit.

    I think an optional flag could be added to the function to give the same output as uname -svr. That would not change existing behaviour and is probably acceptable. The flag argumen would also allow adding uname -m to the ouput.

    As for the doc, SysVersion is a generic function and I think saying shows a operating specific version string is correct. If the function is enhanced the doc would be updated to state what the optional flag argument produced.

     
  • Mark Miesfeld

    Mark Miesfeld - 2012-02-06

    Change title to reflect change from bug to request for enhancement.

     

Anonymous
Anonymous

Add attachments
Cancel