Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Thu, 13 Jul 2000 16:58:09 -0400 Message-Id: <200007132058.QAA26680@envy.delorie.com> From: DJ Delorie To: cygwin-developers AT sourceware DOT cygnus DOT com In-reply-to: <20000712135224.B2568@cygnus.com> (message from Chris Faylor on Wed, 12 Jul 2000 13:52:24 -0400) Subject: Re: new setup.exe in cvs! References: <200007101915 DOT PAA13577 AT envy DOT delorie DOT com> <200007111805 DOT OAA02322 AT envy DOT delorie DOT com> <12tmms0q9ff43hqdukairos23ga27421rl AT 4ax DOT com> <200007111938 DOT PAA02935 AT envy DOT delorie DOT com> <0rumms8bd6f5g2aip0hh75hhe2vki9o84l AT 4ax DOT com> <200007112102 DOT RAA03615 AT envy DOT delorie DOT com> <20000711220845 DOT B31687 AT cygnus DOT com> <200007121635 DOT MAA21003 AT envy DOT delorie DOT com> <20000712135224 DOT B2568 AT cygnus DOT com> > On Wed, Jul 12, 2000 at 12:35:09PM -0400, DJ Delorie wrote: > >I've checked in a patch to setup that moves the mkgroup/mkpasswd stuff > >into /etc/postinstall/*.sh, and added support to /etc/profile to run - > >once - any script found as /etc/postinstall/*.sh. I also only do the > >mkgroup/mkpasswd stuff if the install happens on NT. > > I still don't understand why you'd put this burden on bash. If things > need to be setup shouldn't setup be doing the setup? OK, this is where it's at now: * Setup will look for /etc/passwd and /etc/group, and create its own postinstall/*.bat to create whatever's missing. * setup will look for /etc/postinstall/*.sh, and run each with whatever shell it can find (sh, else bash), if any shell can be found at all. These scripts are renamed to