• Summary of archiver command lines

    From Björn Wiberg@2:201/137 to g00r00 on Sat Aug 7 11:16:28 2021
    Hello g00r00!

    For your reference, here's a short summary of "revised" archiver
    definitions for you, if you think you'd want to incorporate any of this in future releases of Mystic. (Please feel free to compare with what you have.)

    Active ³ Yes
    Extension ³ ZIP
    OS ³ All
    Description ³ Info-ZIP Utilities
    Pack Cmd ³ zip -qj9 "%1" -- %2
    Unpack Cmd ³ unzip -oqqjC -- "%1" "%2" -d "%3"
    View Cmd ³

    Active ³ Yes
    Extension ³ RAR
    OS ³ All
    Pack Cmd ³ rar a -inul -cl -c- -ep -o+ -y -- "%1" "%2"
    Unpack Cmd ³ rar e -inul -cl -c- -ep -o+ -y -- "%1" "%2" "%3"
    View Cmd ³

    Active ³ Yes
    Extension ³ LHA
    OS ³ Linux
    Description ³ LHA (viewing only)
    Pack Cmd ³
    Unpack Cmd ³ lha -efiw="%3" "%1" "%2"
    View Cmd ³

    (lha currently does not support creating archives on Linux, so empty Pack Cmd)

    Active ³ Yes
    Extension ³ LZH
    OS ³ Linux
    Description ³ LZH (viewing only)
    Pack Cmd ³
    Unpack Cmd ³ lha -efiw="%3" "%1" "%2"
    View Cmd ³

    (lha currently does not support creating archives on Linux, so empty Pack Cmd)

    Active ³ Yes
    Extension ³ LHA
    OS ³ Windows
    Description ³ LHA (via 7-Zip)
    Pack Cmd ³ 7z a -ba -y -- "%1" "%2"
    Unpack Cmd ³ 7z e -ba -y -o"%3" -- "%1" "%2"
    View Cmd ³

    Active ³ Yes
    Extension ³ LZH
    OS ³ Windows
    Description ³ LZH (via 7-Zip)
    Pack Cmd ³ 7z a -ba -y -- "%1" "%2"
    Unpack Cmd ³ 7z e -ba -y -o"%3" -- "%1" "%2"
    View Cmd ³

    Active ³ Yes
    Extension ³ 7Z
    OS ³ Windows
    Description ³ 7-Zip
    Pack Cmd ³ 7z a -ba -y -- "%1" "%2"
    Unpack Cmd ³ 7z e -ba -y -o"%3" -- "%1" "%2"
    View Cmd ³ 7z l -y -- "%1" >> "%3%2"

    Active ³ Yes
    Extension ³ 7Z
    OS ³ Linux
    Description ³ 7-Zip
    Pack Cmd ³ 7z a -ba -y -- "%1" "%2"
    Unpack Cmd ³ 7z e -ba -y -o"%3" -- "%1" "%2"
    View Cmd ³ 7z l -y -- "%1" >> "%3%2" 2> /dev/null; exit $?

    Active ³ No
    Extension ³ ARJ
    OS ³ All
    Description ³ ARJ32 ARJ Utilities
    Pack Cmd ³ arj a -e -i -y -- "%1" "%2"
    Unpack Cmd ³ arj e -e -i -y -w"%3" -ht"%3" -- "%1" "%2"
    View Cmd ³

    Active ³ No
    Extension ³ ARJ
    OS ³ Windows
    Description ³ ARJ32 ARJ Utilities
    Pack Cmd ³ arj a -e -i -y -- "%1" "%2"
    Unpack Cmd ³ arj e -e -i -y -w"%3" -ht"%3" -- "%1" "%2"
    View Cmd ³ arj v -i -y -- "%1" >> "%3%2"

    Active ³ Yes
    Extension ³ ARJ
    OS ³ Linux
    Description ³ ARJ32 ARJ Utilities
    Pack Cmd ³ arj a -e -i -y -- "%1" "%2"
    Unpack Cmd ³ arj e -e -i -y -w"%3" -ht"%3" -- "%1" "%2"
    View Cmd ³ arj v -i -y -- "%1" >> "%3%2" 2> /dev/null; exit $?

    (Viewing cannot be done in an OS-independent way due to Mystic redirecting stdout and stderr to /dev/null on Linux, but only stderr on Windows.)

    Active ³ Yes
    Extension ³ ZOO
    OS ³ Linux
    Description ³ ZOO
    Pack Cmd ³ zoo ahP: "%1" %2
    Unpack Cmd ³ cd "%3" > /dev/null 2>&1 && zoo xOOS: "%1" "%2" > /dev/null 2>&1; exit $?
    View Cmd ³ zoo lVCm "%1" >> "%3%2" 2> /dev/null; exit $?

    Active ³ Yes
    Extension ³ ARC
    OS ³ Linux
    Description ³ ARC
    Pack Cmd ³ arc awn "%1" %2
    Unpack Cmd ³ cd "%3" > /dev/null 2>&1 && arc ewn "%1" "%2" > /dev/null
    &1; exit $?
    View Cmd ³ arc vw "%1" >> "%3%2" 2> /dev/null; exit $?

    Active ³ Yes
    Extension ³ TAR
    OS ³ Linux
    Description ³ GNU tar
    Pack Cmd ³ { cd "$(dirname "%2")" && tar -c -f "%1" -- $(basename "%2");
    }
    Unpack Cmd ³ tar -x -f "%1" -C "%3" --xform='s,.*/,,' --overwrite -- "%2"
    View Cmd ³ tar -t -f "%1" -v --full-time -- >> "%3%2" 2> /dev/null; exit $?

    Active ³ Yes
    Extension ³ TGZ
    OS ³ Linux
    Description ³ GNU tar + gzip
    Pack Cmd ³ { cd "$(dirname "%2")" && tar -c -z -f "%1" -- $(basename "%2"); }
    Unpack Cmd ³ tar -x -f "%1" -z -C "%3" --xform='s,.*/,,' --overwrite --
    "%2"
    View Cmd ³ tar -t -f "%1" -z -v --full-time -- >> "%3%2" 2> /dev/null; exit $?

    NOTE: The TAR/TGZ Pack Cmds utilize command grouping ({ ... ; }) -- which
    might be unique to bash -- due to command line length limitations.

    Best regards
    Bj”rn
    --- Mystic BBS v1.12 A47 2021/08/05 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From Björn Wiberg@2:201/137 to Stephen Walsh on Sat Aug 7 12:03:48 2021
    Hello Stephen!

    Thank you for your reply!

    On 07 Aug 2021, Stephen Walsh said the following...
    (lha currently does not support creating archives on Linux, so empty Pack Cmd)

    I'm not having any issues creating lha archives on linux. (Debian)

    Pack Cmd: lha -ao5fi "%1%" "%2%"

    Compiled from source: LHa for UNIX version 1.14i-ac20081023 (i686-pc-linux-gnu)

    Sorry -- I should have mentioned -- the problems (lack of archive creation support) are when using the Debian-packaged version of lha -- lhasa:

    root@glimmer:~# apt-cache show lhasa
    Package: lhasa
    Version: 0.3.1-3
    Installed-Size: 46
    Maintainer: Jonathan Dowland <jmtd@debian.org>
    Architecture: amd64
    Provides: lha, lzh-archiver
    Depends: libc6 (>= 2.4), liblhasa0 (= 0.3.1-3)
    Conflicts: lha (<< 1.14i-10.4)
    Description-en: lzh archive decompressor
    Lhasa lha is a tool for parsing LHA (.lzh) archives and a free
    replacement for the Unix LHA tool.
    .
    Currently it is only possible to read from (ie. decompress) archives;
    generating (compressing) LHA archives may be an enhancement for future
    versions. The aim is to be compatible with as many different variants
    of the LHA file format as possible, including LArc (.lzs) and
    PMarc (.pma).
    .
    The command line tool aims to be interface-compatible with the non-free
    Unix LHA tool (command line syntax and output), for backwards
    compatibility with tools that expect particular output.
    Description-md5: 11c02758a2e2ad3aa2ab14056e1b6be3
    Homepage: http://fragglet.github.com/lhasa/
    Section: utils
    Priority: optional
    Filename: pool/main/l/lhasa/lhasa_0.3.1-3_amd64.deb
    Size: 18240
    MD5sum: 96753d0565d28af28672db82e71160ec
    SHA256: 4954bd89e21986311f409e1264b51321f38b5a6db004b75eb3d56c77ea8337c3

    But you're right -- for those running "LHa for UNIX" (https://github.com/jca02266/lha), the Pack Cmds should be there. Thanks!

    Best regards
    Bj”rn
    --- Mystic BBS v1.12 A47 2021/08/05 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From g00r00@1:129/215 to Björn Wiberg on Sat Aug 7 10:51:06 2021
    For your reference, here's a short summary of "revised" archiver definitions for you, if you think you'd want to incorporate any of this
    in future releases of Mystic. (Please feel free to compare with what you have.)

    Thanks I have exported this message and I will try to go through it at some point here!

    ... Don't diet, download a virus to remove the FAT.

    --- Mystic BBS v1.12 A47 2021/07/31 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)