The problem is, that the zipgrep script uses a pipe: unzip -p-L "$zipfile" "$i" | egrep $opt "$pat" | sed "s|^|${i}:|" and than save the exit code with r=$?, which is the exit code of sed not of egrep. I have d patch to replace r=$? with r=${PIPESTATUS[1]}. It works for me
** Attachment added: "fix for zipgrep" http://launchpadlibrarian.net/9075555/unzip.patch ** Changed in: unzip (Ubuntu) Status: New => Confirmed -- zipgrep: exit code always 0 https://bugs.launchpad.net/bugs/135086 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs