ksh93's version string can be extracted with ksh93 -c 'print
"${.sh.version}"' or ksh93 -c 'print "$(( .sh.version ))"' to extract
a numeric value which may be used to implement a 'minimum version'
check.On Thu, Jan 14, 2010 at 12:08 AM, Chris Gerhard <[email protected]> wrote: > I have two 64bit x86 systems one AMD one intel both running OpenSolaris > build 130. However the ksh93 binary in /usr/bin/amd64 on each system is > different. > > pkg verify SUNWcs > > does not report any issues with either but they have different checksums. > > Both are using the same authority for opensolaris.org. Both were upgraded. > One from build 129 and one from build 125. > > pkg contents SUNWcs the same output on both systems for the file: > > r...@pearson:/var/cores# pkg contents -m SUNWcs | grep amd64/ksh93 > file 2fbfe85ad662b86becc480b7c17d3395760adc4d > chash=e3a53cb82068dc6e7cedc5f166b7d2739fee05b9 elfarch=i386 elfbits=64 > elfhash=4d7753d6595bafa718c55dd4932e64ac1e44546a group=bin mode=0555 > owner=root path=usr/bin/amd64/ksh93 pkg.csize=2981 pkg.size=9856 > variant.arch=i386 > r...@pearson:/var/cores# > > But the two files are different: > > r...@pearson:/var/cores# digest -a md5 /usr/bin/amd64/ksh93 > 72fe10d7e585ed10727a7e737bb3fb57 > r...@pearson:/var/cores# > > r...@brompton:~# digest -a md5 /usr/bin/amd64/ksh93 > d0b4cb19582dc60db30e9e54b8778eaa > r...@brompton:~# > > If I copy them to the same system cmp also differs. However pkg verify shows > no problem with the files. > > If anyone has build 130 running I would be interested to know which is the > correct binary. > > -- > Sent from my OpenSolaris Laptop > _______________________________________________ > pkg-discuss mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/pkg-discuss > -- , _ _ , { \/`o;====- Olga Kryzhanovska -====;o`\/ } .----'-/`-/ [email protected] \-`\-'----. `'-..-| / Solaris/BSD//C/C++ programmer \ |-..-'` /\/\ /\/\ `--` `--` _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
