Compling Stockfish on Windows 10-64bit using cygwin

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: Compling Stockfish on Windows 10-64bit using cygwin

Post by Sven »

JohnS wrote: Fri Jan 04, 2019 1:35 am Thanks for the link Tirsa. It works well.

Off topic for Unix gurus (not me :(): How does the line

unzip -v &> /dev/null || pacman -S --noconfirm unzip

work in checking if unzip is installed and installing it if it is not?
The "||" is a logical OR in the shell. If the "unzip -v" command fails it will (by UNIX convention) return a non-zero exit code which means "false". The only plausible reason for "unzip v" to fail is that there is no "unzip" command in the PATH, usually meaning that "unzip" is not installed. And so the "pacman" command will be run.
Sven Schüle (engine author: Jumbo, KnockOut, Surprise)
JohnS
Posts: 215
Joined: Sun Feb 24, 2008 2:08 am

Re: Compling Stockfish on Windows 10-64bit using cygwin

Post by JohnS »

Sven wrote: Fri Jan 04, 2019 6:53 pm
JohnS wrote: Fri Jan 04, 2019 1:35 am Thanks for the link Tirsa. It works well.

Off topic for Unix gurus (not me :(): How does the line

unzip -v &> /dev/null || pacman -S --noconfirm unzip

work in checking if unzip is installed and installing it if it is not?
The "||" is a logical OR in the shell. If the "unzip -v" command fails it will (by UNIX convention) return a non-zero exit code which means "false". The only plausible reason for "unzip v" to fail is that there is no "unzip" command in the PATH, usually meaning that "unzip" is not installed. And so the "pacman" command will be run.
Thanks for the clear explanation Sven.