Just a sample of the Echomail archive
Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.
|    MYSTIC    |    Mystic support echo    |    16,010 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 13,719 of 16,010    |
|    Bj”rn Wiberg to g00r00    |
|    Re: Unpack Cmd "%2" and paths (tar examp    |
|    06 Aug 21 00:54:48    |
   
   TID: Mystic BBS 1.12 A47   
   MSGID: 2:201/137 66c3642b   
   REPLY: 2:201/137 6e6d42c7   
   TZUTC: 0200   
   Hello again, g00r00!   
      
   On 05 Aug 2021, Bj”rn Wiberg said the following...   
    BW> Tested viewing, (D)ownloading file from inside archive (including some   
    BW> "tricks"   
    BW> there which appear to be handled correctly now) and also downloading a    
      
   The only "bad" thing I noticed is that the automatic "basenaming" (stripping   
   path info from the entered filename) of "%2" for the Unpack Cmd can make it   
   hard to perform archive member (file) selection for certain archivers.   
      
   For instance, tar requires the "correct" (full) path of a file within an   
   archive to be entered when selecting files for extraction.   
      
   For example:   
      
   $ tar tf ../test2.tar   
   atest2.txt   
   test1.txt   
   subdir/   
   subdir/btest2.txt   
   subdir/test2.txt   
      
   $ tar -xvf /tmp/test2.tar -C /tmp/bw2/ --xform='s,.*/,,' --overwrite --   
   "test2.txt"   
   tar: test2.txt: Not found in archive   
   tar: Exiting with failure status due to previous errors   
      
   $ tar -xvf /tmp/test2.tar -C /tmp/bw2/ --xform='s,.*/,,' --overwrite --   
   "subdir/test2.txt"   
   subdir/test2.txt   
      
   One can enable wildcards, but it will be a "sloppy" match, selecting more than   
   desired:   
      
   $ tar -xvf /tmp/test2.tar -C /tmp/bw2/ --xform='s,.*/,,' --overwrite   
   --wildcards -- "*test2.txt"   
   atest2.txt   
   subdir/btest2.txt   
   subdir/test2.txt   
      
   This will potentially leave a bunch of similarly named files from within the   
   archive left over in the temp* directory, as only the file name entered will   
   be deleted by Mystic...   
      
   The --xform=... option does wonders, however, when it comes to junking paths   
   for the extracted files (if one managed to extract any files). The result of   
   the wildcard extraction above is:   
      
   $ ls -1   
   atest2.txt   
   btest2.txt   
   test2.txt   
      
   The tar example with the sloppy match (so far) in Mystic is:   
      
    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   
   --wildcards -- "*%2"   
    View Cmd ³ { tar -t -f "%1" -v --full-time -- >> "%3%2"; }   
      
   Best regards   
   Bj”rn   
   --- Mystic BBS v1.12 A47 2021/08/05 (Linux/64)   
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)   
   SEEN-BY: 1/123 30/0 80/1 90/1 103/705 105/81 120/340 123/131 124/5016   
   SEEN-BY: 129/305 154/10 201/0 137 203/0 124 218/700 221/0 1 6 226/30   
   SEEN-BY: 227/114 702 229/101 424 426 428 452 550 700 981 1016 1017   
   SEEN-BY: 230/0 240/1120 5832 249/206 307 317 400 261/38 280/464 5003   
   SEEN-BY: 282/464 1038 292/854 8125 301/0 1 101 113 317/3 320/219 322/757   
   SEEN-BY: 335/364 341/66 342/200 396/45 633/280 712/848 920/1 2452/250   
   SEEN-BY: 3634/24 5020/1042 5058/104   
   PATH: 201/137 0 203/0 280/464 301/1 229/426   
      
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca