This is the mail archive of the cygwin-apps mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Perpetual postinstall scripts

We're starting to get more and more of these, which is fine, since that
was why they were introduced.  However, I'd like to remind everybody to
not use bash for any postinstall scripts unless you absolutely have to
and especially not for perpetual postinstall scripts.  It is only
slightly less troublesome to script for dash if your script doesn't use
any bashisms, either set PATH=/usr/bin at the beginning of the script or
use absolute path names for all executables.

Since a lot of the perpetual postinstall scripts check a condition to
decide if they should do anything, I'd also repeat my recommendation to
avoid forking subprocesses as much as possible (use builtins instead of
/usr/bin/test for instance) and hand off to terminal executables via
exec.  This drastically increases the chances of things still working OK
if something went wrong with rebasing.

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf rackAttack:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]