TIP: Click on subject to list as thread! ANSI
echo: mystic
to: g00r00
from: Bjrn Wiberg
date: 2021-08-04 13:02:00
subject: Re: ZIP archiver argument

Hello again, g00r00!

'On 03 Aug 2021, Bj”rn Wiberg said the following...
 BW> Shouldn't these % variables all be quoted? Like:
 BW> 
 BW>     Pack Cmd ³ zip -qj9 "%1" "%2"
 BW>   Unpack Cmd ³ unzip -oqqjC "%1" "%2" -d "%3"
 BW> 
 BW> ...to be on the safe side? It seems to be that way for the other
 BW> archivers.

To answer myself -- no, not for %2 in the Pack Cmd, as Mystic uses wildcards when compressing e.g. the file lists, which would then become verbatim, and zip won't perform any wildcard expansion on its own.

But this should be as OK as possible:

Pack Cmd ³ zip -qj9 "%1" %2
Unpack Cmd ³ unzip -oqqjC "%1" "%2" -d "%3"

Best regards
Bj”rn

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

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.