Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • What about my -x "..*" Won't it avoid going to parent of the root? I have been using this for years... Commented Mar 20, 2019 at 17:11
  • Your -x option avoids storing the files from .. etc. in the archive, but it doesn’t avoid zip checking them: that’s what I meant when I wrote “The second is that zip checks all the file names it’s given, when it’s asked to recurse, before filtering excluded patterns” (excluded patterns being the patterns given with -x). Commented Mar 20, 2019 at 17:14
  • Oh I missed when you said "before filtering excluded patterns"... that might explain all this... wow... Thanks Commented Mar 20, 2019 at 17:19
  • That means my -x "..*" strategy looks into lot of unnecessary places... I would need to update this everywhere, LOL....... Commented Mar 20, 2019 at 17:20
  • The one with only the . seems to work... I endedup long long time ago tailoring that script to put .* because for some reason it was not including hidden files (starting with .) if my memory is right... oh well might have missed something back them... just using . seem pretty simple and clean. Commented Mar 20, 2019 at 17:23