> Should maybe "PARSE SOURCE" return "UBUNTU" instead of "LINUX" to indicate 
> that it behaves
> differently compared to other Linuxes?


Parse source return the info provides by CMAKE_SYSTEM_NAME
And by some tweak of configure.ac before that

I just run a
cmake --system-information info.txt

But nothing useful there


The only command that might give a hint about the linux distribution might be
Some variant of the uname command and the equivalent programmatic construct 


[vagrant@debian9 ~]$uname -v
#1 SMP Debian 4.9.144-3 (2019-02-02)


But …

[vagrant@fedora ~]$uname -v
#1 SMP Wed Feb 13 13:08:05 UTC 2019

And

[enrico@imac ~]$uname -v
Darwin Kernel Version 17.7.0: Thu Dec 20 21:47:19 PST 2018; 
root:xnu-4570.71.22~1/RELEASE_X86_64


Unfortunately it is also almost impossible to parse the information returned by 
the 
 command uname -a 


If it is possible to determine the testing path with the info we have now 
 without too many IFs or CASEs lets keep it that way

For borderline cases like this one I would make a group of 
 ?questionable test cases with odd behaviour without the assertions
 but with a short explication of the different results

Have a nice weekend 

Cheers

E




> On 16 Feb 2019, at 16:41, Rony G. Flatscher <rony.flatsc...@wu.ac.at> wrote:
> 
> What would you suggest/advise given your huge knowledge and experiences on so 
> many different Unix
> systems?
> 
> Should the test be adapted to check whether Ubuntu is the host system (e.g. 
> "if
> sysVersion()~caselessPos('Ubuntu')>0 then ...")?
> 
> Should the function work differently on Ubuntu to match the behaviour of 
> other Unix systems? If so,
> how could one determine/decide which behaviour should be expected/picked by 
> Rexx programmers
> employing them?
> 
> Should the functions behave according to the host system's behaviour, but 
> document it? If so, then
> maybe a means for querying the exact behaviour might become important for 
> Rexx programmers to adjust
> their logic accordingly (or pick a different function or use address).
> 
> How should differences among Unix versions be handled in principle?
> 
> Should maybe "PARSE SOURCE" return "UBUNTU" instead of "LINUX" to indicate 
> that it behaves
> differently compared to other Linuxes?
> 
> ---rony
> 
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to