I have am trying to unzip a file via SSH, I require a case sensitive unzip.
My server is using Debian Unzip 6.
It shouldn’t be doing this, but it is converting all my file names to lower case, causing my Joomla site to buckle.
There are far too many files to rename manually or to FTP if I want to finish in my lifetime.
I have a zip called bv2.zip placed in the directory I want to extract in…
I have cd’d into my directory and simply issued: unzip bv2.zip …. filenames all go to lowercase…
I have also tried absolute paths to no avail, the UNZIP help and manual states that case sensitivity is enabled by default with this version, but obviously not…
Any ideas??
what does unzip -v file.zip show? The docs say
It’d be worth checking how they are stored. If the creating zip program is storing them all as lowercase, then that’s where you need to look for a way to actually store unaltered filenames.
Finally, just to be sure, check that there’s no alias or environment variable on your Debian server forcing use of the -L option. Look at output of the following commands, run on the Debian server’s terminal:
(there should be no weird alias for unzip)
(Any flags contained in this environment variable will be used by unzip as if they’d been added to the command invocation).