On Thu, Nov 8, 2018 at 5:02 AM Petr Štetiar <
ynezz@true.cz> wrote:
Dirk Laurie <dirk.laurie@gmail.com> [2018-11-08 14:44:10]:
> Op Do., 8 Nov. 2018 om 14:38 het Petr Štetiar <ynezz@true.cz> geskryf:
> >
> > It seems like that FreeBSD version is shipping with custom unzip[1]
> > implementation, which doesn't have `-h` commandline option, option which is
> > being used by LuaRocks to find out if the unzip utility is installed.
>
> Maybe LuaRocks could use `unzip -v` instead of `unzip -h` for this purpose.
Hm, I don't think so, as it seems, that this FreeBSDish unzip would exit[1]
with 0 return code only after succesful file unzip, but maybe I'm reading it
wrong :-)
1. https://github.com/freebsd/freebsd/blob/1d6e4247415d264485ee94b59fdbc12e0c566fd0/usr.bin/unzip/unzip.c#L1065
-- ynezz
Thanks Daurnimator et all! The version of unzip provided with the base FreeBSD install does not support -h (nor does it support -v for version). However, the version in ports/archivers provides the correct functionality for both -h and -v. I did have that ports version installed in /usr/local/bin but /usr/bin takes precedence in my path. So my plan now is to add archivers/unzip as a port dependency and patch the config file. (unless there's a better suggestion).
Thanks for the help!
Russ