home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume15 / arc5.21 / part02 < prev    next >
Text File  |  1988-06-30  |  65KB  |  2,354 lines

  1. Subject:  v15i078:  ARC (PC compression program), v5.21, Part02/05
  2. Newsgroups: comp.sources.unix
  3. Sender: sources
  4. Approved: rsalz@uunet.UU.NET
  5.  
  6. Submitted-by: hyc@math.lsa.umich.edu
  7. Posting-number: Volume 15, Issue 78
  8. Archive-name: arc5.21/part02
  9.  
  10. #--------------------------------CUT HERE-------------------------------------
  11. #! /bin/sh
  12. #
  13. # This is a shell archive.  Save this into a file, edit it
  14. # and delete all lines above this comment.  Then give this
  15. # file to sh by executing the command "sh file".  The files
  16. # will be extracted into the current directory owned by
  17. # you with default permissions.
  18. #
  19. # The files contained herein are:
  20. #
  21. # -rw-r--r--  1 hyc         54144 Jun 13 05:26 Arc521.doc
  22. # -rw-r--r--  1 hyc          7232 Jun 12 19:31 arc.1
  23. #
  24. echo 'x - Arc521.doc'
  25. if test -f Arc521.doc; then echo 'shar: not overwriting Arc521.doc'; else
  26. sed 's/^X//' << '________This_Is_The_END________' > Arc521.doc
  27. X
  28. X
  29. X
  30. X
  31. X
  32. X
  33. X
  34. X
  35. X
  36. X
  37. X
  38. X
  39. X                          ARC
  40. X
  41. X                 File Archive Utility
  42. X                     Version 5.20
  43. X
  44. X
  45. X
  46. X
  47. X
  48. X
  49. X
  50. X
  51. X
  52. X
  53. X
  54. X
  55. X
  56. X
  57. X
  58. X
  59. X
  60. X
  61. X
  62. X
  63. X
  64. X
  65. X
  66. X
  67. X
  68. X                 (C)COPYRIGHT 1985,86
  69. X                          by
  70. X          System Enhancement Associates, Inc.
  71. X                  ALL RIGHTS RESERVED
  72. X
  73. X
  74. X
  75. X
  76. X
  77. XThis document describes version 5.20 of the ARC file
  78. Xutility, which was created by System Enhancement
  79. XAssociates, Inc. in October of 1986.
  80. X
  81. X
  82. X        TABLE OF CONTENTS
  83. X
  84. X
  85. X
  86. XSection                                           Page
  87. X
  88. X
  89. XIntroduction  ....................................   1
  90. XUsing ARC  .......................................   3
  91. XARC commands  ....................................   5
  92. X    Adding files  ................................   5
  93. X    Extracting files  ............................   7
  94. X    Deleting files  ..............................   8
  95. X    Listing archive entries  .....................   8
  96. X    Running files  ...............................  10
  97. X    Printing files  ..............................  11
  98. X    Testing an archive  ..........................  11
  99. X    Converting an archive  .......................  12
  100. XARC options  .....................................  13
  101. X    Suppressing compression  .....................  13
  102. X    Backup retention  ............................  14
  103. X    Message suppression  .........................  15
  104. X    Encryption/Decryption  .......................  17
  105. XRAMdisk support  .................................  18
  106. XMARC  ............................................  19
  107. XARCE  ............................................  20
  108. XVersion numbers  .................................  21
  109. XCommon questions and answers  ....................  22
  110. XMaintenance contracts  ...........................  24
  111. XRevision history  ................................  25
  112. X    Changes in version 3  ........................  25
  113. X    Changes in version 4  ........................  25
  114. X    Changes in version 4.1  ......................  26
  115. X    Changes in version 4.3  ......................  26
  116. X    Changes in version 4.4  ......................  27
  117. X    Changes in version 4.5  ......................  27
  118. X    Changes in version 5.0  ......................  28
  119. X    Changes in version 5.1  ......................  29
  120. X    Changes in version 5.2  ......................  30
  121. XProgram history and credits  .....................  31
  122. XBulletin boards  .................................  33
  123. XSite licenses  ...................................  34
  124. X
  125. X
  126. X
  127. X
  128. X
  129. X
  130. X
  131. X
  132. X
  133. X
  134. X
  135. X
  136. X
  137. X          INTRODUCTION
  138. X
  139. X
  140. X
  141. XARC is the copyrighted property of System Enhancement
  142. XAssociates, Inc.  You are granted a limited license to
  143. Xuse ARC, and to copy it and distribute it, provided
  144. Xthat the following conditions are met:
  145. X
  146. X1) No fee may be charged for such copying and
  147. X   distribution.
  148. X
  149. X2) ARC may ONLY be distributed in its original,
  150. X   unmodified state.
  151. X
  152. X3) ARC may *not* be distributed, in whole or in part, as
  153. X   part of any commercial product or service without
  154. X   the express written permission of System
  155. X   Enhancement Associates.
  156. X
  157. X
  158. XContributions for the use of this program will be
  159. Xappreciated, and should be sent to:
  160. X
  161. X          System Enhancement Associates, Inc.
  162. X             21 New Street, Wayne NJ 07470
  163. X
  164. XYou may not use this product in a commercial
  165. Xenvironment or a governmental organization without
  166. Xpaying a license fee of $35.  Site licenses and
  167. Xcommercial distribution licenses are available.  A
  168. Xprogram disk and printed documentation are available
  169. Xfor $50.  See the order form enclosed with this manual
  170. Xfor more details.
  171. X
  172. X
  173. X
  174. XARC is user supported software.  This means that you
  175. Xmay copy it freely and give the copies away to anyone
  176. Xyou wish, at no cost.  They are in turn requested to
  177. Xsend in a contribution if they decide to use it.
  178. X
  179. XThe user supported software concept (often referred to
  180. Xas "shareware") is an attempt to provide software at low
  181. Xcost.  The cost of offering a new product by
  182. Xconventional means is staggering, and hence dissuades
  183. Xmany independent authors and small companies from
  184. Xdeveloping and promoting their ideas.  User supported
  185. Xsoftware is an attempt to develop a new marketing
  186. Xchannel, where products can be introduced at low cost.
  187. X
  188. X
  189. X
  190. X
  191. XARC                                              Page 1
  192. X If user supported software works, then everyone will
  193. Xbenefit.  The user will benefit by receiving quality
  194. Xproducts at low cost, and by being able to "test
  195. Xdrive" software thoroughly before purchasing it.  The
  196. Xauthor benefits by being able to enter the commercial
  197. Xsoftware arena without first needing large sources of
  198. Xventure capital.
  199. X
  200. XBut it can only work with your support.  We're not
  201. Xjust talking about ARC here, but about all user
  202. Xsupported software.  If you obtain a user supported
  203. Xprogram from a friend or colleague, and are still
  204. Xusing it after a couple of weeks, then it is obviously
  205. Xworth something to you, and a contribution should be
  206. Xsent.
  207. X
  208. X
  209. X
  210. XAnd now, back to ARC:
  211. X
  212. XARC is used to create and maintain file archives.  An
  213. Xarchive is a group of files collected together into
  214. Xone file in such a way that the individual files may
  215. Xbe recovered intact.
  216. X
  217. XARC is different from other archive and library
  218. Xutilities in that it automatically compresses the
  219. Xfiles being archived, so that the resulting archive
  220. Xtakes up a minimum amount of space.
  221. X
  222. XWhen ARC is used to add a file to an archive it
  223. Xanalyzes the file to determine which of three storage
  224. Xmethods will result in the greatest savings.  These
  225. Xthree methods are:
  226. X
  227. X1) No compression; the file is stored as is.
  228. X
  229. X2) Repeated-character compression; repeated sequences
  230. X   of the same byte value are collapsed into a three-
  231. X   byte code sequence.
  232. X
  233. X3) Dynamic Lempel-Zev compression;  the file is stored
  234. X   as a series of variable size bit codes which
  235. X   represent character strings, and which are created
  236. X   "on the fly".
  237. X
  238. XNote that since one of the three methods involves no
  239. Xcompression at all, the resulting archive entry will
  240. Xnever be larger than the original file.
  241. X
  242. X
  243. X
  244. X
  245. X
  246. XARC                                              Page 2
  247. X            USING ARC
  248. X
  249. X
  250. X
  251. XARC is invoked with a command of the following format:
  252. X
  253. X    ARC <x> <arcname> [<template> . . .]
  254. X
  255. XWhere:
  256. X
  257. X    <x> is an ARC command letter (see below), in
  258. X    either upper or lower case.
  259. X
  260. X    <arcname> is the name of the archive to act on,
  261. X    with or without an extension.  If no extension is
  262. X    supplied, then ".ARC" is assumed.  The archive
  263. X    name may include path and drive specifiers.
  264. X
  265. X    <template> is one or more file name templates.
  266. X    The "wildcard" characters "*" and "?" may be used.
  267. X    A file name template may include a path or drive
  268. X    specifier, though it isn't always meaningful.
  269. X
  270. X
  271. XIf ARC is invoked with no arguments (by typing "ARC",
  272. Xand pressing "enter"), then a brief command summary is
  273. Xdisplayed.
  274. X
  275. X
  276. X
  277. XFollowing is a brief summary of the available ARC
  278. Xcommands:
  279. X
  280. X    a   = add files to archive
  281. X    m   = move files to archive
  282. X    u   = update files in archive
  283. X    f   = freshen files in archive
  284. X    d   = delete files from archive
  285. X    x,e = extract files from archive
  286. X    r   = run files from archive
  287. X    p   = copy files from archive to standard output
  288. X    l   = list files in archive
  289. X    v   = verbose listing of files in archive
  290. X    t   = test archive integrity
  291. X    c   = convert entry to new packing method
  292. X
  293. X
  294. X
  295. X
  296. X
  297. X
  298. X
  299. X
  300. X
  301. XARC                                              Page 3
  302. X Following is a brief summary of the available ARC
  303. Xoptions, which may alter how a command works:
  304. X
  305. X    b   = retain backup copy of archive
  306. X    s   = suppress compression (store only)
  307. X    w   = suppress warning messages
  308. X    n   = suppress notes and comments
  309. X    o   = overwrite existing files when extracting
  310. X    g   = encode or decode archive entry
  311. X
  312. X
  313. X
  314. X
  315. X
  316. X
  317. X
  318. X
  319. X
  320. X
  321. X
  322. X
  323. X
  324. X
  325. X
  326. X
  327. X
  328. X
  329. X
  330. X
  331. X
  332. X
  333. X
  334. X
  335. X
  336. X
  337. X
  338. X
  339. X
  340. X
  341. X
  342. X
  343. X
  344. X
  345. X
  346. X
  347. X
  348. X
  349. X
  350. X
  351. X
  352. X
  353. X
  354. X
  355. X
  356. XARC                                              Page 4
  357. X          ARC COMMANDS
  358. X
  359. X
  360. X
  361. XThis section describes each of the commands.  ARC will
  362. Xaccept any one command at a time.  If no commands are
  363. Xgiven, then a brief command list is displayed.
  364. X
  365. X
  366. X
  367. XADDING FILES
  368. X
  369. XFiles are added to an archive using the "A" (Add), "M"
  370. X(Move), "U" (Update), or "F" (Freshen) commands.  Add
  371. Xalways adds the file.  Move differs from Add in that
  372. Xthe source file is deleted once it has been added to
  373. Xthe archive.
  374. X
  375. XUpdate differs from Add in that the file is only added
  376. Xif it is not already in the archive, or if it is newer
  377. Xthat the corresponding entry in the archive.
  378. X
  379. XFreshen is similar to Update, except that new files
  380. Xare not added to the archive; only files already in
  381. Xthe archive are updated.
  382. X
  383. X
  384. XFor example, if you wish to add a file named
  385. X"TEST.DAT" to an archive named "MY.ARC", you would use
  386. Xa command of the form:
  387. X
  388. X    ARC a my test.dat
  389. X
  390. XIf you wanted to add all files with a ".C" extension,
  391. Xand all files named "STUFF" to an archive named
  392. X"JUNK.ARC", you could type:
  393. X
  394. X    ARC a junk *.c stuff.*
  395. X
  396. XIf you wanted to move all files in your current
  397. Xdirectory into an archive named "SUM.ARC", you could
  398. Xuse a command of the form:
  399. X
  400. X    ARC m sum *.*
  401. X
  402. XIf you have an archive named "TEXT.ARC", and you
  403. Xwanted to add to it all of your files with an
  404. Xextension of ".TXT" which have been created or changed
  405. Xsince they were last archived, then you would type:
  406. X
  407. X    ARC u text *.txt
  408. X
  409. X
  410. X
  411. XARC                                              Page 5
  412. X If you have a bunch of files in your current
  413. Xdirectory, with backup copies being stored in an
  414. Xarchive named "SAFE.ARC", then if you wanted to make
  415. Xsure that every file in the archive is the latest
  416. Xversion of that file, you would type:
  417. X
  418. X    ARC f safe
  419. X
  420. X
  421. XA word about Update and Freshen:  These are similar in
  422. Xthat they look at the date and time of last change on
  423. Xthe file, and only add it if the file has been changed
  424. Xsince it was last archived.  They differ in that
  425. XUpdate will add new files, while Freshen will not.
  426. X
  427. XIn other words, Update looks for the files on disk,
  428. Xand adds them if they are new or have changed, while
  429. XFreshen looks in the archive, and tries to update the
  430. Xfiles which are already there.
  431. X
  432. X
  433. XArchive entries are always maintained in alphabetic
  434. Xorder.  Archive entries may not have duplicate names.
  435. XIf you add a file to an archive that already contains
  436. Xa file by that name, then the existing entry in the
  437. Xarchive is replaced.  Also, the archive itself and its
  438. Xbackup will not be added.
  439. X
  440. XYou may also add a file which is in a directory other
  441. Xthan your current directory.  For example, it is
  442. Xperfectly legal to type:
  443. X
  444. X    ARC a junk c:\dustbin\stuff.txt
  445. X
  446. XYou cannot add two files with the same name.  In other
  447. Xwords, if you have a file named "C:\DUSTBIN\STUFF.TXT"
  448. Xand another file named "C:\BUCKET\STUFF.TXT", then
  449. Xtyping:
  450. X
  451. X    arc a junk c:\dustbin\*.* c:\bucket\*.*
  452. X
  453. Xwill not work.
  454. X
  455. X
  456. XARC does not save the path name.  In other words, if
  457. Xyou specify a drive and/or path when adding a file,
  458. Xonly the actual file name is stored in the archive.
  459. X
  460. X
  461. X
  462. X
  463. X
  464. X
  465. X
  466. XARC                                              Page 6
  467. X ARC will never add an archive to itself, nor will it
  468. Xadd the temporary copy or a backup copy of the
  469. Xarchive.
  470. X
  471. X
  472. XAn interesting note:  It has been brought to our
  473. Xattention that BASIC programs compress to a smaller
  474. Xsize when they are *not* tokenized.  If you are more
  475. Xconcerned with space than speed, you may wish to
  476. Xconvert your BASIC programs to ASCII form before
  477. Xadding them to an archive.  Your BASIC manual should
  478. Xgive instructions on how to do this.
  479. X
  480. X
  481. X
  482. XEXTRACTING FILES
  483. X
  484. XArchive entries are extracted with the "E" (Extract)
  485. Xand "X" (eXtract) commands.  For example, if you had
  486. Xan archive named "JUNK.ARC", and you wanted all files
  487. Xin it with an extension of ".TXT" or ".DOC" to be
  488. Xrecreated on your disk, you could type:
  489. X
  490. X    ARC x junk *.txt *.doc
  491. X
  492. XIf you wanted to extract all of the files in an
  493. Xarchive named "JUNK.ARC", you could simply type:
  494. X
  495. X    ARC x junk
  496. X
  497. XWhatever method of file compression was used in
  498. Xstoring the files is reversed, and uncompressed copies
  499. Xare created in the current directory.
  500. X
  501. XYou can also specify a path name, in which case the
  502. Xdecompressed copy is placed in the specified
  503. Xdirectory.  For example, if you had an archive named
  504. X"JUNK.ARC", and you wanted all files in it with an
  505. Xextension of ".TXT" to be placed in the directory
  506. X"C:\WASTE\LAND", then you could type:
  507. X
  508. X    ARC x junk c:\waste\land\*.txt
  509. X
  510. XIf you wanted to put the file "TRASH.TXT" on your A:
  511. Xdrive, and the file "LITTER.TXT" on your B: drive, you
  512. Xcould type:
  513. X
  514. X    ARC x junk a:trash.txt b:litter.txt
  515. X
  516. X
  517. X
  518. X
  519. X
  520. X
  521. XARC                                              Page 7
  522. X If you give more than one path for a file, then only
  523. Xthe first one is used.  For example, if you typed:
  524. X
  525. X    ARC x junk a:trash.txt b:trash.txt
  526. X
  527. Xthen TRASH.TXT will be placed on your A: drive.
  528. X
  529. X
  530. X
  531. XDELETING FILES
  532. X
  533. XArchive entries are deleted with the "D" (Delete)
  534. Xcommand.  For example, if you had an archive named
  535. X"JUNK.ARC", and you wished to delete all entries in it
  536. Xwith a filename extension of ".C", you could type:
  537. X
  538. X    ARC d junk *.c
  539. X
  540. X
  541. X
  542. XLISTING ARCHIVE ENTRIES
  543. X
  544. XYou can obtain a list of the contents of an archive by
  545. Xusing the "L" (List) command or the "V" (Verbose list)
  546. Xcommand.  For example, to see what is in an archive
  547. Xnamed "JUNK.ARC", you could type:
  548. X
  549. X    ARC l junk
  550. X
  551. XIf you are only interested in files with an extension
  552. Xof ".DOC", then you could type:
  553. X
  554. X    ARC l junk *.doc
  555. X
  556. X
  557. XARC prints a short listing of an archive's contents
  558. Xlike this:
  559. X
  560. X    Name          Length    Date
  561. X    ============  ========  =========
  562. X    ALPHA.TXT         6784  16 May 85
  563. X    BRAVO.TXT         2432  16 May 85
  564. X    COCO.TXT           256  16 May 85
  565. X            ====  ========
  566. X    Total      3      9472
  567. X
  568. X
  569. X"Name" is simply the name of the file.
  570. X
  571. X
  572. X
  573. X
  574. X
  575. X
  576. XARC                                              Page 8
  577. X "Length" is the unpacked file length.  In other words,
  578. Xit is the number of bytes of disk space which the file
  579. Xwould take up if it were extracted.
  580. X
  581. X"Date" is the date on which the file had last been
  582. Xmodified, as of the time when it was added to the
  583. Xarchive.
  584. X
  585. X"Total" is pretty obvious, I think.
  586. X
  587. X
  588. XARC prints a verbose listing of an archive's contents
  589. Xlike this:
  590. X
  591. XName          Length    Stowage    SF   Size now  Date       Time    CRC
  592. X============  ========  ========  ====  ========  =========  ======  ====
  593. XALPHA.TXT         6784  Crunched   35%      4413  16 May 85  11:53a  8708
  594. XBRAVO.TXT         2432  Crunched   41%      1438  16 May 85  11:53a  5BD6
  595. XCOCO.TXT           256   Packed     5%       244  16 May 85  11:53a  3AFB
  596. X        ====  ========            ====  ========
  597. XTotal      3      9472             27%      6095
  598. X
  599. X
  600. X"Name", "Length", and "Date" are the same as for a
  601. Xshort listing.
  602. X
  603. X"Stowage" is the compression method used.  The
  604. Xfollowing compression methods are currently known:
  605. X
  606. X       --          No compression.
  607. X
  608. X     Packed        Runs of repeated byte values are
  609. X                   collapsed.
  610. X
  611. X    Crunched       Lempel-Zev compression technique
  612. X                   employed.
  613. X
  614. X    Squeezed       Huffman encoding compression
  615. X                   technique, as employed by an
  616. X                   earlier version of ARC.
  617. X
  618. X"SF" is the stowage factor.  In other words, it is the
  619. Xpercentage of the file length which was saved by
  620. Xcompression.  The total stowage factor is the stowage
  621. Xfactor for the archive as a whole, not counting
  622. Xarchive overhead.
  623. X
  624. X"Size now" is the number of bytes the file is
  625. Xoccupying while in the archive.
  626. X
  627. X
  628. X
  629. X
  630. X
  631. XARC                                              Page 9
  632. X "Time" is the time of last modification, and is
  633. Xassociated with the date of last modification.
  634. X
  635. X"CRC" is the CRC check value which has been stored
  636. Xwith the file.  Another CRC value will be calculated
  637. Xwhen the file is extracted or tested to ensure data
  638. Xintegrity.  There is no especially good reason for
  639. Xdisplaying this value.
  640. X
  641. X
  642. X
  643. XRUNNING FILES
  644. X
  645. XArchive entries may be run without being extracted by
  646. Xuse of the "R" (Run) command.  For example, if you had
  647. Xan archive named "JUNK.ARC" which contained a file
  648. Xnamed "LEMON.COM", which you wished to run, you could
  649. Xtype:
  650. X
  651. X    ARC r junk lemon
  652. X
  653. XYou can run any file from an archive which has an
  654. Xextension of ".COM", ".EXE", ".BAT", or ".BAS".  You
  655. Xdo not have to specify the extension, but all matching
  656. Xfiles are run if you do not.  In other words, if you
  657. Xhad an archive named "JUNK.ARC" which contained the
  658. Xfiles "LEMON.COM", "LEMON.EXE", and "LEMON.BAS", and
  659. Xyou typed:
  660. X
  661. X    ARC r junk lemon
  662. X
  663. XThen all three programs will be run.  You can avoid
  664. Xthis by specifying an extension in this case.
  665. X
  666. XYou can give arguments to the program you are running
  667. Xby appending them to the command line.  For example,
  668. Xif you have an archive named "JUNK.ARC" which contains
  669. Xa program named "LEMON.COM", and you wanted to run it
  670. Xgiving it the argument "JUICE", you would type:
  671. X
  672. X    ARC r junk lemon juice
  673. X
  674. XYou will need a fair amount of memory to run a program
  675. Xfrom an archive.  It probably cannot be done with less
  676. Xthan 256k.
  677. X
  678. X
  679. X
  680. X
  681. X
  682. X
  683. X
  684. X
  685. X
  686. XARC                                             Page 10
  687. X In practice, the file to be run is extracted, run, and
  688. Xthen deleted.  In other words, the above example is
  689. Xequivalent to:
  690. X
  691. X    ARC x junk lemon.com
  692. X    lemon juice
  693. X    erase lemon.com
  694. X
  695. XIf you have an archive which contains a program that
  696. Xyou will be running often, then you should probably
  697. Xextract the program from the archive and use it
  698. Xnormally.
  699. X
  700. X
  701. X
  702. XPRINTING FILES
  703. X
  704. XArchive entries may be examined with the "P" (Print)
  705. Xcommand.  This works the same as the Extract command,
  706. Xexcept that the files are not created on disk.
  707. XInstead, the contents of the files are written to
  708. Xstandard output.  For example, if you wanted to see
  709. Xthe contents of every ".TXT" file in an archive named
  710. X"JUNK.ARC", but didn't want them saved on disk, you
  711. Xcould type:
  712. X
  713. X    ARC p junk *.txt
  714. X
  715. XIf you wanted them to be printed on your printer
  716. Xinstead of on your screen, you could type:
  717. X
  718. X    ARC p junk *.txt >prn
  719. X
  720. X
  721. X
  722. XTESTING AN ARCHIVE
  723. X
  724. XThe integrity of an archive may be tested by use of
  725. Xthe "T" (Test) command.  This checks to make sure that
  726. Xall of the file headers are properly placed, and that
  727. Xall of the files are in good shape.
  728. X
  729. XThis can be very useful for critical archives, where
  730. Xdata integrity must be assured.  When an archive is
  731. Xtested, all of the entries in the archive are unpacked
  732. X(without saving them anywhere) so that a CRC check
  733. Xvalue may be calculated and compared with the recorded
  734. XCRC value.
  735. X
  736. X
  737. X
  738. X
  739. X
  740. X
  741. XARC                                             Page 11
  742. X For example, if you just received an archive named
  743. X"JUNK.ARC" over a phone line, and you want to make
  744. Xsure that you received it properly, you could type:
  745. X
  746. X    ARC t junk
  747. X
  748. XIt defeats the purpose of the T command to combine it
  749. Xwith N or W.
  750. X
  751. X
  752. X
  753. XCONVERTING AN ARCHIVE
  754. X
  755. XThe "C" (Convert) command is used to convert an
  756. Xarchive entry to take advantage of newer compression
  757. Xtechniques.  This is occasionally desirable when a new
  758. Xversion of ARC is released.  Please refer to the
  759. Xrevision history section for details on when new
  760. Xcompression methods were implemented.
  761. X
  762. XFor example, if you had an archive named "JUNK.ARC",
  763. Xand you wanted to make sure that all files with an
  764. Xextension of ".DOC" were encoded using the very latest
  765. Xmethods, you could type:
  766. X
  767. X    ARC c junk *.doc
  768. X
  769. XOr if you wanted to convert every file in the archive,
  770. Xyou could type:
  771. X
  772. X    ARC c junk
  773. X
  774. X
  775. X
  776. X
  777. X
  778. X
  779. X
  780. X
  781. X
  782. X
  783. X
  784. X
  785. X
  786. X
  787. X
  788. X
  789. X
  790. X
  791. X
  792. X
  793. X
  794. X
  795. X
  796. XARC                                             Page 12
  797. X           ARC OPTIONS
  798. X
  799. X
  800. X
  801. XThis section describes the options which are available
  802. Xto modify how ARC works.  Any of these options can be
  803. Xcombined with any of the commands, though the result
  804. Xmay not always be something you'd want to do.
  805. X
  806. X
  807. X
  808. XSUPPRESSING COMPRESSION
  809. X
  810. XThe "S" (Suppress compression) option can be combined
  811. Xwith any command that updates archive entries.  These
  812. Xinclude Add, Move, Update, Freshen, and Convert.  The
  813. Xeffect of the S option is to prevent any compression
  814. Xtechniques from being employed.  This is intended to
  815. Xallow you to add a few files at a time to an archive
  816. Xquickly, and then later convert the archive to
  817. Xcompress everything at once.
  818. X
  819. XFor example, over the course of a day you might give
  820. Xeach of the following commands:
  821. X
  822. X    ARC as junk *.txt
  823. X    ARC as junk *.mac
  824. X    ARC as junk *.doc
  825. X
  826. XAt the end of the day, when you have finished adding
  827. Xthings to the archive, you could have all of the
  828. Xarchive entries compressed at once by typing:
  829. X
  830. X    ARC c junk
  831. X
  832. XYou could also decompress the archive by typing:
  833. X
  834. X    ARC cs junk
  835. X
  836. Xthough I can't imagine why you'd want to.
  837. X
  838. X
  839. X
  840. X
  841. X
  842. X
  843. X
  844. X
  845. X
  846. X
  847. X
  848. X
  849. X
  850. X
  851. XARC                                             Page 13
  852. X BACKUP RETENTION
  853. X
  854. XWhen ARC changes an archive (during an Add, Move,
  855. XUpdate, Freshen, Delete, or Convert) it creates a new
  856. Xarchive with the same name, but with an extension of
  857. X".$$$".  For example, if you add a file to an archive
  858. Xnamed STUFF.ARC, then ARC will create a new archive
  859. Xnamed STUFF.$$$.  ARC will read from your existing
  860. Xarchive and write out the new archive with any changes
  861. Xto the ".$$$" copy.
  862. X
  863. XNormally when ARC is finished it deletes the original
  864. Xand renames the new archive to the original name (ie.
  865. XSTUFF.ARC goes away, and STUFF.$$$ becomes the new
  866. XSTUFF.ARC).  Among other things, this means that if
  867. Xanything goes wrong and ARC is unable to finish, then
  868. Xyour original archive will still be intact.
  869. X
  870. X
  871. XIn some circumstances you may wish to retain the
  872. Xoriginal version of the archive as a backup copy.  You
  873. Xcan do this easily by using the Backup option.  Add
  874. Xthe letter "B" to your command, and ARC will rename
  875. Xyour original archive to have an extension of ".BAK"
  876. Xinstead of deleting it.
  877. X
  878. X
  879. XIn other words, if you wanted to add "WASTE.TXT" to an
  880. Xarchive named "JUNK.ARC", but wanted to keep a backup
  881. Xcopy, then you would type:
  882. X
  883. X    ARC ab junk waste.txt
  884. X
  885. XYour original archive would become "JUNK.BAK", while
  886. X"JUNK.ARC" would contain the new "WASTE.TXT" file.
  887. X
  888. X
  889. XIf you keep a backup of an archive which already has a
  890. Xbackup, then the older backup copy is deleted.
  891. X
  892. X
  893. X
  894. X
  895. X
  896. X
  897. X
  898. X
  899. X
  900. X
  901. X
  902. X
  903. X
  904. X
  905. X
  906. XARC                                             Page 14
  907. X MESSAGE SUPPRESSION
  908. X
  909. XARC prints three types of messages: warnings,
  910. Xcomments, and errors.
  911. X
  912. XWarnings are messages about suspected error
  913. Xconditions, such as when a file to be extracted
  914. Xalready exists, or when an extracted file fails the
  915. XCRC error check.  Warnings may be suppressed by use of
  916. Xthe "W" (Warn) command.  You should use this command
  917. Xsparingly.  In fact, you should probably not use this
  918. Xcommand at all.
  919. X
  920. XComments (or notes) are informative messages, such as
  921. Xnaming each file as it is added to the archive.
  922. XComments and notes may be suppressed by use of the "N"
  923. X(Note) command.
  924. X
  925. XErrors are actual system problems, such as running out
  926. Xof disk space.  You cannot suppress errors.
  927. X
  928. X
  929. XFor example, suppose you extracted all files with an
  930. Xextension of ".BAS" from an archive named "JUNK.ARC"
  931. XThen, after making some changes which you decide not
  932. Xto keep, you decide that you want to extract them all
  933. Xagain, but you don't want to be asked to confirm every
  934. Xone.  In this case, you could type:
  935. X
  936. X    ARC xw junk *.bas
  937. X
  938. XOr, if you are going to add a hundred files with an
  939. Xextension of ".MSG" to an archive named "TRASH.ARC",
  940. Xand you don't want ARC to list them as it adds them,
  941. Xyou could type:
  942. X
  943. X    ARC an trash *.msg
  944. X
  945. XOr, if you want to extract the entire contents of an
  946. Xarchive named "JUNK.ARC", and you don't want to hear
  947. Xanything, then type:
  948. X
  949. X    ARC xnw junk
  950. X
  951. X
  952. XA special case is provided when extracting files from
  953. Xan archive.  One of the various warnings that can
  954. Xoccur is when a file being extracted already exists on
  955. Xdisk.  Normally, ARC will stop and ask you if you want
  956. Xto overwrite the file.  This can be suppressed with
  957. Xthe "W" command, but that will also suppress any
  958. X
  959. X
  960. X
  961. XARC                                             Page 15
  962. X warnings about other things, like failed CRC checks
  963. Xand such.
  964. X
  965. XThe "O" (Overwrite) option suppresses *only* the warning
  966. Xthat the file already exists.  For example, in our
  967. Xearlier case of extracting all the ".BAS" files from
  968. X"JUNK.ARC", a much safer way to do it is to type:
  969. X
  970. X    ARC xo junk *.BAS
  971. X
  972. X
  973. X
  974. X
  975. X
  976. X
  977. X
  978. X
  979. X
  980. X
  981. X
  982. X
  983. X
  984. X
  985. X
  986. X
  987. X
  988. X
  989. X
  990. X
  991. X
  992. X
  993. X
  994. X
  995. X
  996. X
  997. X
  998. X
  999. X
  1000. X
  1001. X
  1002. X
  1003. X
  1004. X
  1005. X
  1006. X
  1007. X
  1008. X
  1009. X
  1010. X
  1011. X
  1012. X
  1013. X
  1014. X
  1015. X
  1016. XARC                                             Page 16
  1017. X ENCRYPTION/DECRYPTION
  1018. X
  1019. XArchive entries may be encrypted and decrypted by
  1020. Xusing the "G" (Garble) option.  The Garble option
  1021. Xtakes the remainder of the command string as the
  1022. Xpassword to use, so it must be the *last* option.
  1023. X
  1024. X
  1025. XFor example, if you wanted to add a file named
  1026. X"WASTE.TXT" to an archive named "JUNK.ARC", and you
  1027. Xwanted to encrypt it using the password "DEBRIS", then
  1028. Xyou would type:
  1029. X
  1030. X    ARC agdebris junk waste.txt
  1031. X
  1032. XLater on, when you want to extract it again, you would
  1033. Xtype:
  1034. X
  1035. X    ARC xgdebris junk waste.txt
  1036. X
  1037. XThe password you supply is used to encrypt (or
  1038. Xdecrypt) the archive entry by performing an exclusive
  1039. XOR between each byte of the packed data and each byte
  1040. Xof the password.  The password can be any length, and
  1041. Xeach of its bytes is used in rotation.  The password
  1042. Xis converted to uppercase before it is used, so it is
  1043. X*not* case sensitive.  Since the encryption is performed
  1044. Xon the packed data, it has no effect on stowage
  1045. Xfactors.
  1046. X
  1047. XThis is not a particularly sophisticated means of
  1048. Xencryption, and it is theoretically possible to crack.
  1049. XStill, since it is performed on the packed data, the
  1050. Xresult should be quite sufficient for casual use.
  1051. X
  1052. X
  1053. XYou can, if you wish, use different passwords for
  1054. Xdifferent files in an archive, but we advise against
  1055. Xit.  If you are going to encrypt an archive, we
  1056. Xsuggest you use the same password for every file, and
  1057. Xgive the password whenever you do anything at all with
  1058. Xthe archive.  It is possible to list the entries in an
  1059. Xencrypted archive using the "L" and "V" commands
  1060. Xwithout giving the password, but nothing else will
  1061. Xwork properly.
  1062. X
  1063. X
  1064. XWe advise that you use this option sparingly, if at
  1065. Xall.  If you should forget or mistype your password,
  1066. Xit is highly unlikely that you will ever recover your
  1067. Xdata.
  1068. X
  1069. X
  1070. X
  1071. XARC                                             Page 17
  1072. X         RAMDISK SUPPORT
  1073. X
  1074. X
  1075. X
  1076. XIf you have a RAMdisk, or other high-speed storage,
  1077. Xthen you can speed up ARC somewhat by telling it to
  1078. Xput its temporary files on the RAMdisk.  You do this
  1079. Xby setting the ARCTEMP environment string with the MS-
  1080. XDOS SET command.  For example, if drive B: is your
  1081. XRAMdisk, then you would type:
  1082. X
  1083. X    set ARCTEMP=B:
  1084. X
  1085. XRefer to the MS-DOS manual for more details about the
  1086. XSET command.  You need only set the ARCTEMP string
  1087. Xonce, and ARC will use it from then on until you
  1088. Xchange its value or reboot your system.
  1089. X
  1090. X
  1091. XIf ARC does not find an environment string named
  1092. XARCTEMP, then it looks for one named TEMP to use
  1093. Xinstead.  Several packages already use the TEMP string
  1094. Xfor exactly this purpose.  If you have need of an
  1095. Xenvironment string named TEMP for something else, then
  1096. Xyou should be sure to define ARCTEMP.
  1097. X
  1098. X
  1099. XThere are a limited number of temporary files created
  1100. Xby ARC.  The Convert command uses a file named
  1101. X"$ARCTEMP.CVT" to hold each file as it is being
  1102. Xconverted.  The Run command also creates a temporary
  1103. Xfile, which has the name "$ARCTEMP", and whose
  1104. Xextension matches that of the file being run.
  1105. X
  1106. X
  1107. X
  1108. X
  1109. X
  1110. X
  1111. X
  1112. X
  1113. X
  1114. X
  1115. X
  1116. X
  1117. X
  1118. X
  1119. X
  1120. X
  1121. X
  1122. X
  1123. X
  1124. X
  1125. X
  1126. XARC                                             Page 18
  1127. X              MARC
  1128. X
  1129. X
  1130. X
  1131. XMARC is a separate program which is used to merge
  1132. Xarchives created by ARC.  MARC moves files from one
  1133. Xarchive to another without unpacking them.
  1134. X
  1135. X
  1136. XMARC is used as follows:
  1137. X
  1138. X    MARC <target> <source> [<template> . . .]
  1139. X
  1140. XWhere:
  1141. X
  1142. X    <target> is the name of the archive to add files
  1143. X    to.
  1144. X
  1145. X    <source> is the name of the archive to read files
  1146. X    from.
  1147. X
  1148. X    <template> is one or more file name templates.
  1149. X    The wildcard characters "*" and "?" may be used.
  1150. X    If no template is supplied, then all of the files
  1151. X    in <source> are added to <target>.
  1152. X
  1153. XIt is not necessary for the target to exist.  If it
  1154. Xdoes not exist, then it is created.  Thus, MARC can be
  1155. Xused as an "extractor" as well as a "merger".
  1156. X
  1157. X
  1158. XFor example, if you wanted to create an archive named
  1159. X"JUNK.ARC", which is to contain all of the files with
  1160. Xan extension of ".TXT" which are currently contained
  1161. Xin another archive named "WASTE.ARC", then you could
  1162. Xtype:
  1163. X
  1164. X    MARC junk waste *.txt
  1165. X
  1166. XIf you wanted to create an archive named "JUNK.ARC",
  1167. Xwhich is to contain all of the files currently in the
  1168. Xarchives "WASTE.ARC" and "TRASH.ARC", you could type:
  1169. X
  1170. X    MARC junk waste
  1171. X    MARC junk trash
  1172. X
  1173. X
  1174. XIf MARC is invoked with no arguments, then it gives
  1175. Xbrief directions in its use.
  1176. X
  1177. X
  1178. X
  1179. X
  1180. X
  1181. XARC                                             Page 19
  1182. X              ARCE
  1183. X
  1184. X
  1185. X
  1186. XARCE is a program which is used to extract files from
  1187. Xan archive.  It will *only* extract files, and it will
  1188. X*not* extract encrypted files.  It doesn't do anything
  1189. Xthat ARC can't do, but it is highly optimized for the
  1190. Xsole purpose of archive extraction, so it is very
  1191. Xsmall and very fast.
  1192. X
  1193. XARCE is used in a fashion very similar to the "ARC E"
  1194. Xcommand (hence the name).  The first argument is the
  1195. Xname of the archive to extract files from, and may
  1196. Xinclude a drive and path specifier.  Up to sixteen
  1197. Xadditional arguments can be supplied, which specify
  1198. Xthe files to extract.  The wildcard characters "*" and
  1199. X"?" are allowed, as with ARC.  If no files are named,
  1200. Xthen all files are extracted from the archive.  If the
  1201. Xfile being extracted already exists, you are asked
  1202. Xwhether or not you want to overwrite it.  You can use
  1203. Xthe "/R" option to bypass this.
  1204. X
  1205. XFor example, if you had an archive named "WASTE.ARC"
  1206. Xthat you wanted to extract everything from, then you
  1207. Xcould type:
  1208. X
  1209. X    ARCE waste
  1210. X
  1211. XOr if you just wanted to extract the files with a
  1212. Xfilename extension of ".ASM", you could type:
  1213. X
  1214. X    ARCE waste *.asm
  1215. X
  1216. XIf you already have a few files from the archive that
  1217. Xyou want replaced, then you could type:
  1218. X
  1219. X    ARCE waste *.asm /R
  1220. X
  1221. XIf you run ARCE with no arguments at all, then it will
  1222. Xgive you a brief reminder of how to use it.
  1223. X
  1224. X
  1225. XNOTICE:NOTICE: ARCE is the copyrighted property of Vernon D.
  1226. X        Buerg and Wayne Chin.  It is included on the
  1227. X        ARC program disk as a service to ARC users.
  1228. X
  1229. X        Vernon D. Buerg
  1230. X        456 Lakeshire Drive
  1231. X        Daly City, CA  94015
  1232. X        RBBS: (415) 994-2944
  1233. X
  1234. X
  1235. X
  1236. XARC                                             Page 20
  1237. X         VERSION NUMBERS
  1238. X
  1239. X
  1240. X
  1241. XThere seems to be some confusion about our version
  1242. Xnumbering scheme.  All of our version numbers are
  1243. Xgiven as a number with two decimal places.
  1244. X
  1245. XThe units indicate a major revision, such as adding a
  1246. Xnew packing algorithm.
  1247. X
  1248. XThe first decimal place (tenths) indicates a minor
  1249. Xrevision that is not essential, but which may be
  1250. Xdesired.
  1251. X
  1252. XThe second decimal place (hundredths) indicates a
  1253. Xtrivial revision that will probably only be desired by
  1254. Xspecific individuals or by die-hard "latest version"
  1255. Xfanatics.
  1256. X
  1257. XARC also displays its date and time of last edit.  A
  1258. Xchange of the date and time without a corresponding
  1259. Xchange in version number indicates a truly trivial
  1260. Xchange, such as fixing a spelling error.
  1261. X
  1262. X
  1263. XTo sum up: If the units change, then you should get
  1264. Xthe newer version as soon as you can.  If the tenths
  1265. Xchange, then you may want to get the newer version,
  1266. Xbut there's no hurry.  If anything else changes, then
  1267. Xyou probably shouldn't bother.
  1268. X
  1269. X
  1270. X
  1271. X
  1272. X
  1273. X
  1274. X
  1275. X
  1276. X
  1277. X
  1278. X
  1279. X
  1280. X
  1281. X
  1282. X
  1283. X
  1284. X
  1285. X
  1286. X
  1287. X
  1288. X
  1289. X
  1290. X
  1291. XARC                                             Page 21
  1292. X  COMMON QUESTIONS AND ANSWERS
  1293. X
  1294. X
  1295. X
  1296. XHere are some of the more common questions we've
  1297. Xreceived about ARC, along with their answers:
  1298. X
  1299. X
  1300. XQ: Why does ARC run out of room if I make an archive
  1301. X   bigger than about 180k?
  1302. X
  1303. XA: Because you are working on a floppy disk.  ARC
  1304. X   creates a copy of your archive, incorporating any
  1305. X   new files as it goes.  When it is done, it deletes
  1306. X   the original and renames the new one.  There are a
  1307. X   number of reasons for doing it this way, one being
  1308. X   that your original archive is still intact if
  1309. X   anything happens while ARC is running.
  1310. X
  1311. X   You can save some space by using drive specifiers
  1312. X   and having the archive and the files to add on
  1313. X   separate disks, but you still won't be able to make
  1314. X   an archive larger than about 180k.  If you need to
  1315. X   make a larger archive, and if you have a fixed
  1316. X   disk, then you can create the archive on the fixed
  1317. X   disk and then copy it to the floppy.
  1318. X
  1319. X
  1320. XQ: I've seen an ARC.COM and an ARC.EXE.  Which one is
  1321. X   the right one?
  1322. X
  1323. XA: ARC.EXE.  One or more people have been running ARC
  1324. X   through a utility that converts an ".EXE" file to a
  1325. X   ".COM" file.  But this utility is designed to save
  1326. X   space, not speed.  On ARC it saves about 250 bytes,
  1327. X   and makes no measurable difference in program
  1328. X   speed.  We've decided that the savings are not
  1329. X   worth the extra step in development in this case.
  1330. X
  1331. X
  1332. XQ: How can I get the latest version of ARC?
  1333. X
  1334. XA: ARC updates are distributed through normal
  1335. X   shareware channels, and by FidoNet.  We also ship a
  1336. X   program update disk on every order of $50 or more.
  1337. X   Also, please refer to the next section for
  1338. X   information about our maintenance contracts.
  1339. X
  1340. X
  1341. X
  1342. X
  1343. X
  1344. X
  1345. X
  1346. XARC                                             Page 22
  1347. X Q: Can I use ARC to distribute my public domain or
  1348. X   shareware program?
  1349. X
  1350. XA: Yes, of course.
  1351. X
  1352. X
  1353. XQ: Can I use ARC to distribute my commercial software
  1354. X   package?
  1355. X
  1356. XA: Yes, provided that you obtain a commercial
  1357. X   distribution license from us.  Please contact us
  1358. X   for details.
  1359. X
  1360. X
  1361. XQ: I'm a commercial user.  Why should I pay for
  1362. X   shareware that others get for free?
  1363. X
  1364. XA: Because you cannot credibly plead poverty.
  1365. X              ___   Shareware, all shareware, is an attempt to develop
  1366. X   a new marketing channel to the benefit of everyone.
  1367. X   You can still "test drive" shareware for a short
  1368. X   period, but if you decide to use it in your
  1369. X   business, then you should pay for it.
  1370. X
  1371. X
  1372. XQ: Why not allow me to select which method of
  1373. X   compression I want ARC to use?
  1374. X
  1375. XA: It would needlessly complicate ARC, both internally
  1376. X   and in use.  The exact nature of the compression
  1377. X   methods used are complex, and quite different.  The
  1378. X   only sure way to tell which will be best in any
  1379. X   given case is to analyze the data, as ARC does.
  1380. X   The method chosen may not always be what you
  1381. X   expect.
  1382. X
  1383. X
  1384. X
  1385. X
  1386. X
  1387. X
  1388. X
  1389. X
  1390. X
  1391. X
  1392. X
  1393. X
  1394. X
  1395. X
  1396. X
  1397. X
  1398. X
  1399. X
  1400. X
  1401. XARC                                             Page 23
  1402. X      MAINTENANCE CONTRACTS
  1403. X
  1404. X
  1405. X
  1406. XRegistered users of ARC receive 90 days of telephone
  1407. Xsupport at no extra charge.  If you wish, you can
  1408. Xextend this by pruchasing a maintenance contract.
  1409. X
  1410. XA maintenance contract costs $50 per year and entitles
  1411. Xyou to unlimited telephone support, as well as free
  1412. Xupdates to ARC as they come out.
  1413. X
  1414. X
  1415. X
  1416. X
  1417. X
  1418. X
  1419. X
  1420. X
  1421. X
  1422. X
  1423. X
  1424. X
  1425. X
  1426. X
  1427. X
  1428. X
  1429. X
  1430. X
  1431. X
  1432. X
  1433. X
  1434. X
  1435. X
  1436. X
  1437. X
  1438. X
  1439. X
  1440. X
  1441. X
  1442. X
  1443. X
  1444. X
  1445. X
  1446. X
  1447. X
  1448. X
  1449. X
  1450. X
  1451. X
  1452. X
  1453. X
  1454. X
  1455. X
  1456. XARC                                             Page 24
  1457. X        REVISION HISTORY
  1458. X
  1459. X
  1460. X
  1461. XCHANGES IN VERSION 3
  1462. X
  1463. XThe function used to calculate the CRC check value in
  1464. Xprevious versions has been found to be in error.  It
  1465. Xhas been replaced with the proper function.  ARC will
  1466. Xstill read archives created with earlier versions of
  1467. XARC, but it will report a warning that the CRC value
  1468. Xis in error.  All archives created prior to version
  1469. X3.0 should be unpacked and repacked with the latest
  1470. Xversion of ARC.
  1471. X
  1472. X
  1473. XTransmitting a file with XMODEM protocol rounds the
  1474. Xsize up to the next multiple of 128 bytes, adding
  1475. Xgarbage to the end of the file.  This used to confuse
  1476. XARC, causing it to think that the end of the archive
  1477. Xwas invalidly formatted.  This has been corrected in
  1478. Xversion 3.01.  Older archives may still be read, but
  1479. XARC may report them to be improperly formatted.  All
  1480. Xfiles can be extracted, and no data is lost.  In
  1481. Xaddition, ARC will automatically correct the problem
  1482. Xwhen it is encountered.
  1483. X
  1484. X
  1485. X
  1486. XCHANGES IN VERSION 4
  1487. X
  1488. XARC is adding another data compression technique in
  1489. Xthis version.  We have been looking for some technique
  1490. Xthat could improve on Huffman squeezing in at least a
  1491. Xfew cases.  So far, Lempel-Zev compression seems to be
  1492. Xfulfilling our fondest hopes, often achieving
  1493. Xcompression rates as much as 20% better than
  1494. Xsqueezing, and sometimes even better.  Huffman
  1495. Xsqueezing depends on some bytes being more "popular"
  1496. Xthan others, taking the file as a whole.  Lempel-Zev
  1497. Xcompression is instead looking for strings of bytes
  1498. Xwhich are repeated at various points (such as an end
  1499. Xof line followed by spaces for indentation).  Lempel-
  1500. XZev compression is therefore looking for repetition at
  1501. Xa more "macro" level, often achieving impressive
  1502. Xpacking rates.
  1503. X
  1504. XIn the typical case a file is added to an archive once
  1505. Xand then extracted many times, so the increased time
  1506. Xfor an update should more than pay for itself in
  1507. Xincreased disk space and reduced transmission time.
  1508. X
  1509. X
  1510. X
  1511. XARC                                             Page 25
  1512. X CHANGES IN VERSION 4.1
  1513. X
  1514. XLempel-Zev coding has been improved somewhat by
  1515. Xperforming non-repeat compression on the data before
  1516. Xit is coded (as was already done with Huffman
  1517. Xsqueezing).  This has the two fold advantage of (a)
  1518. Xreducing to some extent the amount of data to be
  1519. Xencoded, and (b) increasing the time it takes for the
  1520. Xstring table to fill up.  Performance gains are small,
  1521. Xbut noticeable.
  1522. X
  1523. XThe primary changes are in internal organization.  ARC
  1524. Xis now much "cleaner" inside.  In addition to the
  1525. Xaesthetic benefits to the author, this should make
  1526. Xlife easier for the hackers out there.  There is also
  1527. Xa slight, but not noticeable, improvement in overall
  1528. Xspeed when doing an update.
  1529. X
  1530. X
  1531. X
  1532. XCHANGES IN VERSION 4.3
  1533. X
  1534. XVersion 4.3 adds the much-demanded feature of using
  1535. Xpathnames when adding files to an archive.
  1536. X
  1537. XVersion 4.3 is also using a slightly different
  1538. Xapproach when adding a file to an archive.  The end
  1539. Xresult is twofold:
  1540. X
  1541. X1) Slightly more disk space is required on the drive
  1542. X   containing the archive.  This should only be
  1543. X   noticeable to those creating very large archives on
  1544. X   a floppy based system.
  1545. X
  1546. X2) A 30% reduction in packing time has been achieved
  1547. X   in most cases.  This should be noticeable to
  1548. X   everyone.
  1549. X
  1550. XAs always, version 4.3 is still fully upwards
  1551. Xcompatible, and is backwards compatible as far as
  1552. Xversion 4.1.
  1553. X
  1554. X
  1555. X
  1556. X
  1557. X
  1558. X
  1559. X
  1560. X
  1561. X
  1562. X
  1563. X
  1564. X
  1565. X
  1566. XARC                                             Page 26
  1567. X CHANGES IN VERSION 4.4
  1568. X
  1569. XThe temporary file introduced in version 4.3
  1570. Xoccasionally caused problems for people who had not
  1571. Xadded a FILES= statement to their CONFIG.SYS file.
  1572. XThis has now been corrected.  Also, support of the
  1573. XARCTEMP environment string was added to allow placing
  1574. Xof the temporary file on a RAMdisk.
  1575. X
  1576. XA bug was reported in the Run command, which has been
  1577. Xfixed.  From the nature of the bug, and the extreme
  1578. Xtime required before the bug was reported, it is
  1579. Xdeduced that the Run command is probably the least
  1580. Xused feature of ARC.
  1581. X
  1582. XThe Update command was changed.  It is no longer a
  1583. Xstraight synonym for Add.  Instead, Update now only
  1584. Xadds a file if it is newer than the version already in
  1585. Xthe archive, as shown by the MS-DOS date/time stamp.
  1586. X
  1587. X
  1588. X
  1589. XCHANGES IN VERSION 4.5
  1590. X
  1591. XThe Convert command was not making use of RAMdisk
  1592. Xsupport.  Now it is.
  1593. X
  1594. XThe Freshen command was added.  Our first choice for a
  1595. Xname was Refresh, but we already had a Run command.
  1596. XAssuming that you have an archive which already
  1597. Xcontains everything you want in it (for software
  1598. Xdistribution, perhaps), then Freshen would be used to
  1599. Xupdate the archive.  It was pointed out to us that ARC
  1600. Xalready knows what is in the archive, so it should be
  1601. Xable to look on disk for newer versions.  Now it can.
  1602. X
  1603. XThe Suppress compression option was added by popular
  1604. Xdemand.  It allows files to be added quickly to an
  1605. Xarchive, since the files are not analyzed or
  1606. Xcompressed, but merely stored straight.  The intent is
  1607. Xto allow users to build an archive "in pieces", and
  1608. Xthen compress all of the entries at once with the
  1609. XConvert command.  The conversion is much faster if you
  1610. Xtake advantage of RAMdisk support.
  1611. X
  1612. XA minor bug was detected in our handling of date/time
  1613. Xstamps which occasionally resulted in stamping an
  1614. Xarchive with the wrong date and time.  This has been
  1615. Xcorrected.
  1616. X
  1617. X
  1618. X
  1619. X
  1620. X
  1621. XARC                                             Page 27
  1622. X CHANGES IN VERSION 5.0
  1623. X
  1624. XThe Move command used to delete the files as it went.
  1625. XIt now waits until it is finished updating the
  1626. Xarchive, and deletes them all at once.  (You *did* know
  1627. Xthat Move is just an Add where the file gets deleted,
  1628. Xdidn't you?)  This, along with the changes made in
  1629. Xversion 4.5, means that it is now much safer to
  1630. Xinterrupt ARC while it is working.
  1631. X
  1632. XThe Print command no longer prints the name of each
  1633. Xfile.  Instead, it prints a formfeed after each file.
  1634. X
  1635. XThe Run command now supports BASICA programs.  Also,
  1636. Xthe filename extension is no longer required on the
  1637. XRun command.
  1638. X
  1639. XThe Garble option was added.  It provides a convenient
  1640. Xmeans of low level data security for the casual user.
  1641. XUse it sparingly, if at all.
  1642. X
  1643. XARC no longer tests for the presence of $ARCTEMP.CRN
  1644. Xbefore creating a new one.  If you interrupt ARC a
  1645. Xlot, you'll find this much more convenient.  If you
  1646. Xhappen to have a file named $ARCTEMP.CRN which you
  1647. Xwant to keep, too bad.
  1648. X
  1649. XImproved error recovery was added when reading an
  1650. Xarchive.  ARC now has a good chance of recovering the
  1651. Xdata from a corrupted archive (the corrupted entry is
  1652. Xstill lost, of course).
  1653. X
  1654. XPath support has been added for all commands, though
  1655. Xit doesn't do anything on most of them.  For example,
  1656. Xthere isn't much we can do with a path in the List
  1657. Xcommand.  But many users will be glad to know that a
  1658. Xpath can be used when extracting a file, and specifies
  1659. Xwhere the file is to be placed.
  1660. X
  1661. XSupport for the TEMP environment string was added.  If
  1662. XARC doesn't find an environment string named ARCTEMP,
  1663. Xthen it looks for one named TEMP to use instead.
  1664. XSeveral packages already use the TEMP string for
  1665. Xexactly this purpose.  With any luck, maybe we can get
  1666. Xa standard going.
  1667. X
  1668. X
  1669. X
  1670. X
  1671. X
  1672. X
  1673. X
  1674. X
  1675. X
  1676. XARC                                             Page 28
  1677. X ARC is now using a different variation of Lempel-Zev
  1678. Xcoding, courtesy of Kent Williams, who found it on
  1679. XUSENET and adapted it to the IBM PC.  The new method
  1680. Xdiffers from the old in several respects.  The most
  1681. Xsignificant differences are:
  1682. X
  1683. X1) Where our previous implementation used a fixed code
  1684. X   size of twelve bits, the new one starts with a code
  1685. X   size of nine bits and increases it as it needs to.
  1686. X
  1687. X2) The earlier method tended to "choke" on large files
  1688. X   when its string table filled up.  The new method
  1689. X   has a rather ingenious scheme its authors call
  1690. X   "adaptive reset."  When it notices that its string
  1691. X   table has filled, and its compression ratio is
  1692. X   starting to suffer, it clears the table and starts
  1693. X   defining new strings.
  1694. X
  1695. XOur benchmarks show an improvement in compression on
  1696. Xthe order of 10% when crunching is used.
  1697. XAdditionally, ARC 5.0 is on the order of 23% faster at
  1698. Xadding a file when crunching is used, or 13% faster
  1699. Xwhen squeezing is used.  Extracting a file crunched
  1700. Xwith the new method is 27% faster than it is with the
  1701. Xold method.  Extraction of any other type of file
  1702. X(including those crunched with the older method) is no
  1703. Xfaster than before.  These figures are based on our
  1704. Xown benchmark tests; your results may vary.
  1705. X
  1706. XThe previous implementation of Lempel-Zev coding is no
  1707. Xlonger used to pack files.  The "V" (Verbose listing)
  1708. Xcommand distinguishes between the two by referring to
  1709. Xthe older method as "crunched" (with a lower-case
  1710. X"c"), and the newer method as "Crunched" (with a
  1711. Xcapital "C").
  1712. X
  1713. XARC 5.0 can still read archives created by earlier
  1714. Xversions of ARC, but once again it creates archives
  1715. Xwhich older versions cannot read.
  1716. X
  1717. X
  1718. X
  1719. XCHANGES IN VERSION 5.1
  1720. X
  1721. XRick Moore discovered that ARC was occasionally adding
  1722. Xan archive to itself.  This would only happen when the
  1723. Xarchive is in the same directory as the files being
  1724. Xadded, and its name comes last.  This bug has been
  1725. Xfixed, though it is still possible to fool ARC into
  1726. Xadding an archive to itself by getting tricky with
  1727. Xpath names.
  1728. X
  1729. X
  1730. X
  1731. XARC                                             Page 29
  1732. X Dana Montgomery found the upper limit on how many
  1733. Xfiles can be added to an archive.  There's always been
  1734. Xan upper limit, but it depends on memory, and used to
  1735. Xbe larger than anyone could possibly want (knock on
  1736. Xwood).  However, the added memory requirements in
  1737. Xversion 5.0 lowered this limit into the realm of
  1738. Xpossibility, somewhere around 300 files.  We change
  1739. Xsome things around, and effectively, there is no
  1740. Xlonger a limit on how many files you can add at once.
  1741. XARC will add the files in batches of as many as it can
  1742. Xhandle at one time.
  1743. X
  1744. XWe've also introduced a new packaging method for ARC
  1745. Xand its documentation, since we are in the unique
  1746. Xposition of being unable to use ARC for this purpose.
  1747. XWe've created a program called ARC51.COM which, when
  1748. Xexecuted, attempts to create the ARC program and
  1749. Xmanual.  You must be in the same directory as
  1750. XARC51.COM when you run it.
  1751. X
  1752. X
  1753. X
  1754. XCHANGES IN VERSION 5.2
  1755. X
  1756. XWe've made some changes to Lempel-Zev coding to
  1757. Xfurther improve its compression ability on "poor fit"
  1758. Xfiles (mainly .EXE and .COM files).  The result is
  1759. Xthat crunching now works better than squeezing on
  1760. Xalmost all files, and comes close on most of the rest
  1761. X(within 5%, by our benchmarks).  Accordingly, we have
  1762. Xdropped Huffman encoding in this version.  Our
  1763. Xbenchmarks show a speed improvement of around 14% when
  1764. Xadding a file to an archive.
  1765. X
  1766. XA low-level file copy routine was implemented to speed
  1767. Xup bulk data moves.  Deleting or adding a file to a
  1768. Xlarge existing archive is now much faster.
  1769. X
  1770. XThe Run command has been modified to allow passing
  1771. Xcommand line arguments to the program being run.
  1772. X
  1773. XThe temporary file introduced in version 4.3 has been
  1774. Xeliminated.  Crunched output generated in the analysis
  1775. Xphase is now placed directly in the output archive,
  1776. Xand is rewritten if crunching turns out not to be the
  1777. Xbest choice.  This can, in rare circumstances, cause
  1778. Xan archive to be slightly larger than it should be,
  1779. Xbut it also makes ARC considerably faster at adding
  1780. Xfiles to an archive.
  1781. X
  1782. X
  1783. X
  1784. X
  1785. X
  1786. XARC                                             Page 30
  1787. X   PROGRAM HISTORY AND CREDITS
  1788. X
  1789. X
  1790. X
  1791. XIn its short life thus far, ARC has astounded us with
  1792. Xits popularity.  We first wrote it in March of 1985
  1793. Xbecause we wanted an archive utility that used a
  1794. Xdistributive directory approach, since this has
  1795. Xcertain advantages over the then popular central
  1796. Xdirectory approach.  We added automatic squeezing in
  1797. Xversion 2 at the prompting of a friend.  In version
  1798. X2.1 we added the code to test for the best compression
  1799. Xmethod.  In less than a year we found that our humble
  1800. Xlittle program had spread across the country, and
  1801. Xseems to have become a new institution.
  1802. X
  1803. XWe are thankful for the support and appreciation we
  1804. Xhave received.  We hope that you find this program of
  1805. Xuse.
  1806. X
  1807. X
  1808. XIf we have achieved greatness, it is because we have
  1809. Xstood upon the shoulders of giants.  Nothing is
  1810. Xcreated as a thing unto itself, and ARC is no
  1811. Xexception.  Therefore, we would like to give credit to
  1812. Xthe following people, without whose efforts ARC could
  1813. Xnot exist:
  1814. X
  1815. X
  1816. XBrian W. Kernighan and P. J. Plauger, whose book
  1817. X"Software Tools" provided many of the ideas behind the
  1818. Xdistributive directory approach used by ARC.
  1819. X
  1820. XDick Greenlaw, who wrote the public domain SQ and USQ
  1821. Xprograms, in which the Huffman squeezing algorithm was
  1822. Xfirst developed.
  1823. X
  1824. XRobert J. Beilstein, who adapted SQ and USQ to
  1825. XComputer Innovations C86 (the language we use), thus
  1826. Xproviding us with important parts of our squeezing
  1827. Xlogic.
  1828. X
  1829. XKent Williams, who graciously allowed us to use his
  1830. XLZWCOM and LZWUNC programs as a basis for our Lempel-
  1831. XZev compression logic, and who continues to make
  1832. Xvaluable contributions.
  1833. X
  1834. XDavid Schwaderer, whose article in the April 1985
  1835. Xissue of PC Tech Journal provided us with the logic
  1836. Xfor calculating the CRC 16 bit polynomial.
  1837. X
  1838. X
  1839. X
  1840. X
  1841. XARC                                             Page 31
  1842. X Terry A. Welch, whose article "A Technique for High
  1843. XPerformance Data Compression", IEEE Computer Vol 17 No
  1844. X6 (June 1984) seems to have started all the research
  1845. Xon Lempel-Zev coding.
  1846. X
  1847. XSpencer W. Thomas, Jim McKie, Steve Davies, Ken
  1848. XTurkowski, James A.  Woods, and Joe Orost, who are the
  1849. Xauthors of the UNIX compress utility.
  1850. X
  1851. XAlex Jacobs, who in June of 1985 sent us the very
  1852. Xfirst shareware contribution we ever received.
  1853. X
  1854. X
  1855. XAnd many, many others whom we could not identify.
  1856. X
  1857. X
  1858. X
  1859. X
  1860. X
  1861. X
  1862. X
  1863. X
  1864. X
  1865. X
  1866. X
  1867. X
  1868. X
  1869. X
  1870. X
  1871. X
  1872. X
  1873. X
  1874. X
  1875. X
  1876. X
  1877. X
  1878. X
  1879. X
  1880. X
  1881. X
  1882. X
  1883. X
  1884. X
  1885. X
  1886. X
  1887. X
  1888. X
  1889. X
  1890. X
  1891. X
  1892. X
  1893. X
  1894. X
  1895. X
  1896. XARC                                             Page 32
  1897. X         BULLETIN BOARDS
  1898. X
  1899. X
  1900. X
  1901. XARC is distributed mainly through shareware channels.
  1902. XAmong other things, this means that ARC is available
  1903. Xfrom many bulletin board systems.  In fact, the system
  1904. Xoperators (sysops) of many bulletin boards have taken
  1905. Xto storing almost all of their downloadable files in
  1906. Xarchives to save themselves disk space and to save
  1907. Xtheir users time.
  1908. X
  1909. XThis also makes things more convenient for the
  1910. Xbulletin board users, since one archive may contain
  1911. Xseveral programs, any related data files, and the
  1912. Xdocumentation.  Many shareware authors have taken to
  1913. Xdistributing their software in archives to help ensure
  1914. Xthat the users receive everything.
  1915. X
  1916. XObviously, we can't do that with ARC.  As a result,
  1917. Xmany of our users have ARC, but don't have the manual.
  1918. XMost of our customer support calls come from people
  1919. Xwho have never seen the manual, and in many cases
  1920. Xdidn't even know that one exists!
  1921. X
  1922. XTo solve this problem we developed what is in essence
  1923. Xa self-unpacking archive.  We distribute this as
  1924. X"ARCxxx.COM", where "xxx" is the current version
  1925. Xnumber.  For example, ARC version 5.20 would be
  1926. Xdistributed as "ARC520.COM".  This program, when run,
  1927. Xunpacks itself into a copy of ARC plus its
  1928. Xdocumentation.
  1929. X
  1930. XNow that we've gone to all that work, we'd really
  1931. Xappreciate it if you would use this program when you
  1932. Xdistribute ARC.
  1933. X
  1934. X
  1935. X
  1936. X
  1937. X
  1938. X
  1939. X
  1940. X
  1941. X
  1942. X
  1943. X
  1944. X
  1945. X
  1946. X
  1947. X
  1948. X
  1949. X
  1950. X
  1951. XARC                                             Page 33
  1952. X          SITE LICENSES
  1953. X
  1954. X
  1955. X
  1956. XCorporate users may wish to obtain a site license for
  1957. Xthe use of ARC.  Please use the order form in this
  1958. Xmanual to order a site license.  Site licenses are
  1959. Xgranted as of when we receive your payment.  License
  1960. Xfees vary depending on the number of computers on
  1961. Xwhich ARC will be used, as follows:
  1962. X
  1963. X     1 to  9 machines  $35 each
  1964. X    10 to 24 machines  $25 each
  1965. X    25 to 49 machines  $20 each
  1966. X    50 to 99 machines  $15 each
  1967. X    over  99 machines  $1500 one time fee
  1968. X
  1969. X
  1970. X
  1971. XEnclosed is a site license agreement, which should be
  1972. Xsigned and sent with your payment when ordering a
  1973. Xcommercial site license.
  1974. X
  1975. X
  1976. XA commercial site license does not include additional
  1977. Xcopies of the ARC program disk and the ARC manual.
  1978. XInstead, you make your own copies of the disk and
  1979. Xmanual as you need them.  If you wish, you can order
  1980. Xadditional program disks and manuals from us.
  1981. X
  1982. XAdditional program disks cost $10 each.  Additional
  1983. Xmanuals cost $20 each.  If you wish, you can order
  1984. Xprogram sets for $40 each.  A "program set" is a
  1985. Xprogram disk and manual enclosed in a vinyl binder.
  1986. XThere is a $50 minimum on all orders.
  1987. X
  1988. X
  1989. X
  1990. X
  1991. X
  1992. X
  1993. X
  1994. X
  1995. X
  1996. X
  1997. X
  1998. X
  1999. X
  2000. X
  2001. X
  2002. X
  2003. X
  2004. X
  2005. X
  2006. XARC                                             Page 34
  2007. X              SITE LICENSE APPLICATION
  2008. X
  2009. X
  2010. X
  2011. XThe use of ARC in a commercial environment or government organization
  2012. Xis granted under the following terms:
  2013. X
  2014. X1.  Payment of the license fee must be made to System Enhancement
  2015. X    Associates, Inc.  The fee is based on the number of computers
  2016. X    which will be used to run ARC, as follows:
  2017. X
  2018. X          1 to  9 machines  $35 each
  2019. X         10 to 24 machines  $25 each
  2020. X         25 to 49 machines  $20 each
  2021. X         50 to 99 machines  $15 each
  2022. X         over  99 machines  $1500 one time fee
  2023. X
  2024. X2.  You may use ARC on the number of computers included in the license
  2025. X    fee.  If you have paid the fee for over 99 machines, then you may
  2026. X    use ARC on any number of computers within your organization.
  2027. X
  2028. X3.  You may make copies of the program and documentation, in their
  2029. X    original,  unmodified form,  without restriction.  You may
  2030. X    distribute these copies without restriction.
  2031. X
  2032. X4.  If these copies are distributed outside of your organization,  you
  2033. X    have no obligation to control the use of those copies which are
  2034. X    outside of your organization.
  2035. X
  2036. X5.  You may make copies of the program documentation, in both its
  2037. X    printed form and machine readable form, without restriction.
  2038. X
  2039. X6.  You may use all future versions of ARC under this license.
  2040. X
  2041. X7.  You may *not* modify the program or charge a fee for copying or
  2042. X    distributing the program or its documentation.
  2043. X
  2044. X8.  It is your responsibility to make the necessary copies and to
  2045. X    deliver them to the computers which they will be used on.  If you
  2046. X    wish, you can order additional ARC program disks and manuals.
  2047. X
  2048. X9.  We are not responsible for *anything* that may happen or not happen
  2049. X    if you use ARC.  You're on your own.
  2050. X
  2051. X
  2052. X    I agree to abide by the terms and conditions of this license.
  2053. X
  2054. X    _____________________________         __________________________
  2055. X    Signature                             Date
  2056. X
  2057. X    _____________________________
  2058. X    Name (please print or type)
  2059. X
  2060. X    _____________________________
  2061. X    Title
  2062. X
  2063. X    _____________________________
  2064. X    Company
  2065. X
  2066. X
  2067. X                    ORDER FORM
  2068. X
  2069. X
  2070. X
  2071. XCheck which items you wish to purchase:
  2072. X
  2073. X    [] Noncommercial license for the use of ARC.
  2074. X
  2075. X    [] Commercial license for the use of ARC on ___ computers (see
  2076. X       attached price schedule and terms).
  2077. X
  2078. X    [] Program disk and documentation (only on orders of $50 or more,
  2079. X       not counting maintenance contracts).
  2080. X
  2081. X    [] ____ additional program disks at $10 per disk.
  2082. X
  2083. X    [] ____ additional manuals at $20 per manual
  2084. X
  2085. X    [] ____ additional program sets (disk, manual, and binder) at $40
  2086. X       per program set.
  2087. X
  2088. X    [] One year maintenance agreement at $50 per year.
  2089. X
  2090. X    [] Payment of $_____ is enclosed (check or money order).
  2091. X
  2092. X    [] Please charge $_____ to my [] Visa or [] MasterCard:
  2093. X
  2094. X      Card number:  _______________________________
  2095. X
  2096. X      Expiration date:  ___________________________
  2097. X
  2098. X      Signature:  _________________________________
  2099. X
  2100. X    _______________________________________________
  2101. X    Name
  2102. X
  2103. X    _______________________________________________
  2104. X
  2105. X
  2106. X    _______________________________________________
  2107. X    Address
  2108. X
  2109. X    ______________________   ________  ____________
  2110. X    City                     State     Zip
  2111. X
  2112. X    _______/_______
  2113. X    FidoNet address
  2114. X
  2115. X
  2116. XSend this completed form to:
  2117. X
  2118. X                  System Enhancement Associates, Inc.
  2119. X                     21 New Street, Wayne NJ 07470
  2120. X
  2121. XFor program disk orders outside the U.S., please add an additional $5,
  2122. Xand enclose an international money order payable in U.S. currency.
  2123. X
  2124. XFor commercial site license orders, please enclose a signed copy of
  2125. Xthe site license agreement.
  2126. X
  2127. ________This_Is_The_END________
  2128. if test `wc -c < Arc521.doc` -ne    54144; then
  2129.     echo 'shar: Arc521.doc was damaged during transit (should have been    54144 bytes)'
  2130. fi
  2131. fi        ; : end of overwriting check
  2132. echo 'x - arc.1'
  2133. if test -f arc.1; then echo 'shar: not overwriting arc.1'; else
  2134. sed 's/^X//' << '________This_Is_The_END________' > arc.1
  2135. X.TH ARC 1L "12 Jun 1988" "Local" "LOCAL COMMANDS"
  2136. X.SH NAME
  2137. Xarc \- pc archive utility
  2138. X.SH SYNOPSIS
  2139. X.B arc
  2140. Xa|m|u|f|d|x|e|r|p|l|v|t|c [ biswnoq ] [ g\fIpassword\fR ]
  2141. X.I archive 
  2142. X[ \fIfilename\fR ...]
  2143. X.SH DESCRIPTION
  2144. X.I Arc
  2145. Xis a general archive and file compression utility, used to maintain
  2146. Xa compressed archive of files.
  2147. XAn
  2148. X.I archive
  2149. Xis a single file that combines many files, reducing storage space
  2150. Xand allowing multiple files to be handled as one.
  2151. X.I Arc
  2152. Xuses one of several compression methods for each file within the
  2153. X.IR archive ,
  2154. Xbased on whichever method yields the smallest result.
  2155. X.SH INSTRUCTIONS
  2156. XExecute
  2157. X.I arc
  2158. Xwith no arguments for fairly verbose, usable instructions.
  2159. X.SH COMMAND SWITCHES
  2160. X.TP 3
  2161. Xa
  2162. Xadd files to archive.  Copies the indicated files to the archive.
  2163. X.TP
  2164. Xm
  2165. Xmove files to archive.  Same as 'a' switch except
  2166. Xthat the files are deleted from the directory as
  2167. Xthey are moved to the archive.
  2168. X.TP
  2169. Xu
  2170. Xupdate files in archive.  This switch will replace archived
  2171. Xfiles when the named file is newer than the archived copy.
  2172. XNew files will be added automatically.
  2173. X.TP
  2174. Xf
  2175. Xfreshen files in archive.  Same as 'u' except that
  2176. Xnew files will not be added.
  2177. X.TP
  2178. Xd
  2179. Xdelete files in archive.  The named files are removed from the archive.
  2180. X.TP
  2181. Xx,e
  2182. Xextract files from archive.  The named files are extracted
  2183. Xfrom the archive and created in the current directory
  2184. Xin an uncompressed state.
  2185. X.TP
  2186. Xr
  2187. Xrun one file with arguments from archive.  Any
  2188. Xprogram may be executed directly from the archive.
  2189. XThe parameters given after the program name are passed to
  2190. Xthe program without modification.
  2191. X.TP
  2192. Xp
  2193. Xcopy files from archive to standard output.  Useful
  2194. Xwith I/O redirection. A form-feed is appended after each file,
  2195. Xto ease use with printers.
  2196. X.TP
  2197. Xl
  2198. Xlist files in archive.  Limited information listing
  2199. Xof files contained in an archive.  Displays the
  2200. Xfilename, original length, and date last modified.
  2201. XIf the 'n' option (see below) is used, only the
  2202. Xfilename is displayed.
  2203. X.TP
  2204. Xv
  2205. Xverbose listing of files in archive.  Complete
  2206. Xinformation listing of files contained in an archive.
  2207. XDisplays the filename, original length, storage method,
  2208. Xstorage factor (% savings), compressed size, date, time,
  2209. Xand CRC.
  2210. X.TP
  2211. Xt
  2212. Xtest archive integrity.  Computes CRC values for each member of
  2213. Xthe archive and compares against the previously saved value.
  2214. X.TP
  2215. Xc
  2216. Xconvert entry to new packing method.  Convert files
  2217. Xstored with older methods to newer methods that are
  2218. Xmore efficient. Also useful for files previously
  2219. Xarchived with the 's' option.
  2220. X.SH OPTIONS
  2221. X.TP 3
  2222. Xb
  2223. Xretain backup copy of archive.  Keep the original
  2224. Xarchive file and rename to .BAK.
  2225. XThis switch may be used with the
  2226. Xfollowing commands:  a, m, u, f, d, c.
  2227. X.TP
  2228. Xi
  2229. Xsuppress image mode.  This switch causes files to
  2230. Xbe treated as text files, and will translate their
  2231. Xend-of-line sequence. (Unix's '\\n' vs. '\\r\\n' used
  2232. Xon many other systems.)  The default is to perform
  2233. Xno translation when compressing or extracting files.
  2234. XThis option makes dealing with text files much nicer,
  2235. Xthough the 'tr' command can also be used. ('\\r' in
  2236. Xmakefiles and C source code is such a nuisance...)
  2237. X.TP
  2238. Xs
  2239. Xsuppress compression.  This forces new files to be
  2240. Xsaved using Method 2 (no compression).  This switch
  2241. Xmay be used with the following commands:  a, m, u, f, c.
  2242. X.TP
  2243. Xw
  2244. Xsuppress warning messages.  This switch will keep
  2245. Xwarning messages from being displayed which is the default.
  2246. XMost warnings concern the deletion or existence of
  2247. Xfiles with the same name.
  2248. X.TP
  2249. Xn
  2250. Xsuppress notes and comments.  This switch will keep
  2251. Xuseful notes from being displayed which is the default.
  2252. XMost notes indicate what stage of compression is
  2253. Xbeing run (analyze, compaction, storage).
  2254. X.TP
  2255. Xo
  2256. Xoverwrite existing files when extracting.  This switch
  2257. Xwill make existing files silently get overwritten, instead
  2258. Xof asking for confirmation, which is the default.
  2259. X.TP
  2260. Xq
  2261. Xforce Squash compression method.  This switch causes
  2262. Xthe Squash compression method to be used, instead of
  2263. XCrunch, which is the default.
  2264. X.TP
  2265. Xg
  2266. Xencrypt/decrypt archive entry.  This is used to encode
  2267. Xfiles so that others may not read them.  BE CAREFUL!
  2268. XThis must be the last parameter in the switches because
  2269. Xeverything following is part of the password.
  2270. X.SH PROGRAMMING NOTES
  2271. X.I Arc
  2272. XVersion 2 differs from version 1 in that archive entries
  2273. Xare automatically compressed when they are added to the archive,
  2274. Xmaking a separate compression step unecessary.  The nature of the
  2275. Xcompression is indicated by the header version number placed in
  2276. Xeach archive entry, as follows:
  2277. X.nf
  2278. X         1 = Old style, no compression
  2279. X         2 = New style, no compression
  2280. X         3 = Compression of repeated characters only
  2281. X         4 = Compression of repeated characters plus Huffman SQueezing
  2282. X         5 = Lempel-Zev packing of repeated strings (old style)
  2283. X         6 = Lempel-Zev packing of repeated strings (new style)
  2284. X         7 = Lempel-Zev Williams packing with improved hash function
  2285. X         8 = Dynamic Lempel-Zev packing with adaptive reset
  2286. X         9 = Squashing
  2287. X.fi
  2288. X
  2289. XType 5, Lempel-Zev packing, was added as of version 4.0
  2290. X
  2291. XType 6 is Lempel-Zev packing where runs of repeated characters
  2292. Xhave been collapsed, and was added as of version 4.1
  2293. X
  2294. XType 7 is a variation of Lempel-Zev using a different hash
  2295. Xfunction which yields speed improvements of 20-25%, and was
  2296. Xadded as of version 4.6
  2297. X
  2298. XType 8 is a different implementation of Lempel-Zev, using a
  2299. Xvariable code size and an adaptive block reset, and was added
  2300. Xas of version 5.0
  2301. X
  2302. XType 9 is another variation of Lempel-Zev, using a larger
  2303. Xhash table. This method was developed by Phil Katz, and is
  2304. Xnot supported by the "official" \fBARC\fP programs.
  2305. X
  2306. X.I Arc
  2307. Xwill look for environment variables named \fIARCTEMP\fP or
  2308. X\fITMPDIR\fP, which, if present, indicates the pathname
  2309. Xwhere temporary files should be created. This is typically
  2310. Xthe location of a RAMdisk on a microcomputer, "/tmp/" or
  2311. Xleft unset.
  2312. X
  2313. XSee the included documentation file for more details.
  2314. X.SH HISTORY
  2315. X\fIArc\fP has been in use in the CP/M and MSDOS world for many years.
  2316. XThom Henderson developed the original version, but it is important to note that
  2317. X\fIarc\fP is based on the file compression theories developed by Huffman, Welch,
  2318. XKnott, Knuth, and many other scientists. This implementation is based on
  2319. Xversion 5.21 of the MSDOS program.
  2320. X.SH BUGS
  2321. X\fIArc\fP behaves just like the PC version of the program; all functions
  2322. Xof the "usage" display are working.
  2323. XFull compatibility with PC ARC files is maintained, the price for which is
  2324. Xthat \fIarc\fP doesn't like long filenames, and can only archive files with
  2325. Xnames of up to 12 characters.
  2326. XIt will *sometimes* do The Right Thing with them, but I suggest
  2327. Xyou put long-winded filenames in a "shar" before
  2328. X.IR arc ing
  2329. Xthem.
  2330. X
  2331. XThere shouldn't be any problems, (hah!) but if you find any, please
  2332. Xsend them to me at:
  2333. X
  2334. X    hyc@umix.cc.umich.edu
  2335. X    {rutgers, uunet}!umix!hyc
  2336. X
  2337. X.SH AUTHORS
  2338. XOriginal MSDOS program by Thom Henderson
  2339. X.br
  2340. XCOPYRIGHT(C) 1985-87 by System Enhancement Associates; ALL RIGHTS RESERVED
  2341. X
  2342. XOriginal Lempel-Zev code derived from compress 4.0.
  2343. XModified to support Squashing by Dan Lanciani (ddl@harvard.edu)
  2344. XPorted from MSDOS by Howard Chu (umix!hyc),
  2345. Xwith help from John Gilmore (hoptoad!gnu), James Turner (daisy!turner)
  2346. Xand others.
  2347. ________This_Is_The_END________
  2348. if test `wc -c < arc.1` -ne     7232; then
  2349.     echo 'shar: arc.1 was damaged during transit (should have been     7232 bytes)'
  2350. fi
  2351. fi        ; : end of overwriting check
  2352. exit 0
  2353.  
  2354.