Short: Bugfixed c:version command Author: Urs Eprecht Uploader: fsteinfe@iiic.ethz.ch (Frederic Steinfels) Version: 40.1 Type: util/shell TITLE Version VERSION 40.1 (bug removed) AUTHOR Urs Eprecht EMail: not yet (but you can EMail to me: fsteinfe@iiic.ethz.ch) DESCRIPTION This is a patch/replacement for the original c:version command. It had a nasty bug: If the last four bytes of a file contained a $ sign, the version command went into an endless loop. The new version command contains a work aournd for this problem: It internally reduces the file size by four bytes. This is save as the last four bytes can't contain a complete version string. The workaround code requires 14 bytes. They were gained by shortening the text: "This disk requires Kickstart version 2.04 or greater" to "Kickstart 2.04 or greater required" This was much easier than increasing the file size. USAGE To apply the patch, enter spatch -oc:version.new -pversion.pch c:version rename c:version c:version.old rename c:version.new c:versioin SPECIAL REQUIREMENTS Required: c:version command with the size of 4764 bytes and version number 40.1 AVAILABILITY Aminet ftp://ftp.wustl.edu/aminet/util/shell/version.lha PRICE Free DISTRIBUTABILITY Distributed as freeware. The version command is Copyrigth by the owner of AmigaOS The patch is Copyright by Urs Eprecht ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 14636 9285 36.5% 06-Feb-98 02:00:28 +spatch 196 191 2.5% 31-Mar-97 23:25:26 +version.pch 1483 748 49.5% 06-Feb-98 02:02:18 +version.readme -------- ------- ----- --------- -------- 16315 10224 37.3% 07-Feb-98 20:29:50 3 files