Skip to content

Possible problem with the -spd switch and the option to exclude Mac resources? #1548

@jajajaneeneenee

Description

@jajajaneeneenee

Configuration

  • Keka version: 1.4.5 -r5509
  • macOS version: 10.14.6

Describe the bug

I've just started experimenting a bit with Keka's terminal support (it works well!), and I also switched on the verbose console output for compression as a test – when using the App (not via terminal). There I then saw which switches are set for the keka7zz binary when compressing something via the app (I tried with ZIP and had activated the "Exclude Mac resources" option in Keka).

I noticed the following:
The console output showed that these switches (among others) were set with wildcards to exclude Mac resources:

-xr!._*
-xr!.FBC*
-xr!.com.apple.timemachine.*

But in addition (according to the console output) the switch -spd is also set (which means: "disable wildcard matching for file names"). This also seems to apply to the -x switches ...

Therefore, the above-mentioned -x switches will probably not work, and I also checked it with a test file. The result: a file such as "._test" is NOT excluded (while files like ".DS_Store" – without wildcards in the switch, here -xr!.DS_Store – were correctly excluded).

To Reproduce

  • Create a test file with the name "._test" (e.g. in a folder with other files).
  • Try to compress this folder with Keka and the option "Exclude Mac resources" activated.
  • Check if the file "._test" was excluded or not.

Expected behavior

  • The exclusions with wildcards should also work.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions