Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: nitram on December 21, 2015, 02:14:22 AM

Title: version command queries
Post by: nitram on December 21, 2015, 02:14:22 AM
1)
'version -l' appears redundant to 'version', query streamline:
Code: [Select]
tc@box:/usr/bin$ version
dCore-jessie:2015.12.20.21.26
tc@box:/usr/bin$ version -l
dCore-jessie:2015.12.20.21.26

2)
'version -c' and 'version -r' appear backwards:
Code: [Select]
tc@box:/usr/bin$ version -c
Warning:
You are running dCore-jessie:2015.12.20.21.26
The latest release is dCore-jessie:2015.12.19.12.55
tc@box:/usr/bin$ version -r
You are running dCore-jessie:2015.12.20.21.26, the latest release candidate.
Shouldn't  -c  stand for release CANDIDATE and  -r  stand for REGULAR RELEASE?
Title: Re: version command queries
Post by: Jason W on December 21, 2015, 07:32:43 AM
-c in Core is for the release, I left it that way for consistency between Core and dCore although I see your point.  Same with the -l, I wanted to leave it the same.

I try to leave the utilities as close to behaving the same as I can so one does not have to use -c for release in Core, and -r in dCore for the same output.  And that allows utilities that use things like version to be alble to more easily just work when ported to dCore. 
Title: Re: version command queries
Post by: nitram on December 21, 2015, 09:02:52 AM
Understood, thanks for the explanation.