[ANN] FreeCOM v0.83 Beta 50 released
Steffen Kaiser <[email protected]> Wed, 06 Nov 2002 22:28:24 +0100
| Newsgroups | gmane.os.freedos.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
FreeCOM version 0.83 Beta 50 has been released.
highlights:
1) The XMS-Swap variant is to work again!!
2) ECHO Useage: %0 /?
- -and-
~ IF "%1"=="/?" goto help
are to work now.
However, every internal command will still display the help screen, if
the "/?" switch is the first argument on command line, e.g.:
ECHO /?
IF/?
REM;=/?
But NOT in these cases:
ECHO. /?
REM What's this/?
3) %_CWD% is substituted by the current working directory (absolute
pathname), if not present in environment.
4) %? is no longer a special variable, but has been replaced by
%ERRORLEVEL% (if not present in environment); some batch files use
%?varname%, which is legal in MS COMMAND unfortunately.
What does the term "if not present in environment" means:
(1) SET ERRORLEVEL=
(2) ECHO %ERRORLEVEL%
(3) SET ERRORLEVEL=1
(4) ECHO %ERRORLEVEL%
Command (1) makes sure that no variable ERRORLEVEL is defined.
Command (2) will display whatever exit code / errorlevel the last
spawned external command returned.
Command (3) will create an environment variable ERRORLEVEL with the
value "1".
Command (4) will display "1" (without the quotes), regardless what exit
code the last spawned external command returned.
===
Changelog:
bugfix: /?: found on all the command line
fix: %0 to return batchfilename as typed on cmd line (bug: maybe upcased)
chg: enumResources(): handle fnam == 0 (file open error)
bugfix: FreeCOM should accept relative path as argv[0]
bugfix: FreeCOM is to pass the fully-qualified path to DOS-4B-00
bugfix: use %1 (and assoc) in FOR commands (activeBatchContext())
add: auto-vars ERRORLEVEL and _CWD (current working directory)
bugfix: removed %? because of incompatibly with existing scripts
bugfix: none-working LOADFIX {Tom Ehlert}
bugfix: XMS-Swap/LOADHIGH: crashes {Tom Ehlert}
Bye,
- --
Steffen Kaiser
The current maintainer of [email protected]
http://freedos.sourceforge.net/freecom/FreeCOM.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE9yYl4UGVBMorxy8YRAt4tAJ41YiOLEMd8TwGkn6TK5Fv96Yt5ygCdGl+z
YtyWtr5Jl8+hA9J+jkz8XZU=
=vV1+
-----END PGP SIGNATURE-----