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

Hello g00r00!

Thank you for your reply!

On 05 Aug 2021, g00r00 said the following...
 g0>  BW> Sorry, my fault (see one of my later replies) -- the Pack Cmd on Linu
 g0>  BW> must have %2 unquoted as zip on that platform does not perform its ow
 g0> 
 g0> I am going to hold off on any more updates until we are using the
 g0> version with  the ">" added to the execution on the Linux side.
 g0> 
 g0> Update the latest version and then lets review the archive stuff after
 g0> that!

I'm currently using the following:

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

(Notice the "%1" and "%3" but %2; speaking of quoting or not quoting "%3".)

It seems to be working just fine.

From the (built-in) archive viewer, I could navigate inside a ZIP containing a subdirectory and some files, and it viewed (= unpacked and displayed) them just fine.

An strace looks fine as well:

write(17, "2021.08.05 22:22:14 Executing: unzip -oqqjC \"/mnt/bbs/mystic/files/local/uploads/test.zip\" \"subdir/test2.txt\" -d \"/home/bbs/mystic/temp2/\" > /dev/null 2>&1\n", 156) = 156
close(17)                               = 0
fork(strace: Process 2298 attached
)                                  = 2298
[pid  2298] execve("/bin/sh", ["/bin/sh", "-c", "unzip -oqqjC \"/mnt/bbs/mystic/files/local/uploads/test.zip\" \"subdir/test2.txt\" -d \"/home/bbs/mystic/temp2/\" > /dev/null 2>&1"], ["LANG=en_US.UTF-8", 

Best regards
Bj”rn

--- Mystic BBS v1.12 A47 2021/08/05 (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™.