This is the mail archive of the cygwin 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]

Re: bash postinstall script returns an error


On Thu, Aug 12, 2010 at 6:14 PM,  <cy.20.superconductor@xoxy.net> 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 ?|| ln -s /proc/self/fd/0 /dev/stdin ?|| result=1
>
> 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 when
> 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, but
> 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


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