• Stop processing options (--) for archivers?

    From Björn Wiberg@2:201/137 to g00r00 on Sat Aug 7 09:46:13 2021
    Hello g00r00!

    Just a suggestion to add "--" to the command lines (Pack Cmd, Unpack Cmd, View Cmd) of archivers, where possible, to avoid filenames starting with "-" to be interpreted as options.

    My findings are that this can be done for zip, rar and 7z, but NOT for lha (or zoo or arc, if you have those).

    N.B.: For the zip Unpack Cmd, the -- is not allowed until AFTER the archive name!
    Pack Cmd │ zip -qj9 "%1" -- %2

    Best regards
    Björn

    --- Mystic BBS v1.12 A47 2021/08/05 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)