This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Perpetual postinstall scripts
- From: Achim Gratz <Stromeko at nexgo dot de>
- To: cygwin-apps at cygwin dot com
- Date: Wed, 19 Jul 2017 19:10:56 +0200
- Subject: Perpetual postinstall scripts
- Authentication-results: sourceware.org; auth=none
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.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds