On 04/15/2012 01:59 PM, Michael Tokarev wrote:
On 15.04.2012 06:48, Kevin O'Connor wrote:
The 1.7.0 version of SeaBIOS has now been released. For more information on the release, please see:
Um. I can't compile it here, due to an error in ./tools/buildversion.sh.
$ sh -x ./tools/buildversion.sh out/vgaversion.c VAR16
- OUTFILE=out/vgaversion.c
- VAR16MODE=VAR16
- [ -d .git ]
- git describe --tags --long --dirty
- VERSION=rel-1.7.0-0-ga026308
- date +%Y%m%d_%H%M%S
- hostname
- VERSION=rel-1.7.0-0-ga026308-20120415_235702-gandalf
- echo Version: rel-1.7.0-0-ga026308-20120415_235702-gandalf
Version: rel-1.7.0-0-ga026308-20120415_235702-gandalf
- [ VAR16 == VAR16 ]
[: 1: VAR16: unexpected operator
- cat
AFIAK, "==" operator is a bash(?) extension, standard POSIX shell only mentions "=" operator.
Not just a bash extension, as ksh and zsh have it too, but you are right that dash doesn't implement it because POSIX 2008 (Issue 7) doesn't require '==', just '='. [There is a good chance that the next POSIX revision (Issue 8) will require '==' as a synonym for '=', but as that version of POSIX is still several years away, you're still better off sticking to '=' for now.]