Group: comp.os.linux.setup


Subject: How to to switch to another dir before starting the actual zip operation? "-b" switch does not work
From: p.sammer@hotmail.com (Peter Sammer)
Date: 11/27/2007 10:38:47 AM
I want to go to another base dir before starting the actual zip operation. Ok, I could do this by simply entering cd /basedir But there is a parameter -b path included in zip which should do the same trick. However when I enetr e.g. karl@/home/karl# zip -r -b /usr/local/karlproj archive.zip log2007 zip tells me: zip warning: name not matched: log2007 Hmm, when I do the same by manual switch (cd /usr/local/kalrproj) and then zip -r archive.zip log2007 then everything works fine. How does the -b flag work correctly ? Peter