X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4C648E6C.5070705@ntlworld.com> References: <4C648E6C DOT 5070705 AT ntlworld DOT com> Date: Fri, 13 Aug 2010 09:29:29 -0600 Message-ID: Subject: Re: bash postinstall script returns an error From: Jeremy Ramer To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Thu, Aug 12, 2010 at 6:14 PM, wrote: > I was going to mention passwd-grp.sh, but I see there's already a thread = for > that, so I'll move right on to the next one. > > When I run setup.exe I always get an error for the bash.sh postinstall > script, it seems to be on the line of: > > /bin/test -e /dev/stdin =A0|| ln -s /proc/self/fd/0 /dev/stdin =A0|| resu= lt=3D1 > > I'm not so clear as to why this fails. test returns a status of 1 when the > script is run by the installer, and yet /dev/stdin does exist. > setup.log.full contains a predictable "ln: creating symbolic link > `/dev/stdin': File exists". > > If I run the postinstall script manually, test gives a status of 0, stdin= is > left alone and the script runs to the end successfully - it only fails wh= en > run from inside the installer (2.712) for me. I've tried invoking bash for > the script using the same switches as those reported in setup.log.full, b= ut > it still runs fine when done manually. I saw the exact same results. I didn't mention it in the other thread because the error didn't occur on manual run. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple