This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Odd directory created when installing 1.7
- From: Marco Atzeri <marco_atzeri at yahoo dot it>
- To: cygwin at cygwin dot com, Matteo Cortese <matteo_cortese at fastwebnet dot it>
- Date: Fri, 29 Oct 2010 11:17:42 +0100 (BST)
- Subject: Re: Odd directory created when installing 1.7
--- Ven 29/10/10, Matteo Cortese ha scritto:
> I've not seen any follow up on this issue for some time,
> and in fact I've just experienced a failure of bash's
> postinstall script fails due to the strange way DEVDIR is
> built.
Matteo,
I don't understand. The bash postinstall script have
nor DEVDIR neither /cygdrive/
/etc/postinstall/bash.sh (eventually bash.sh.done if successfull)
-------------------------------------------------------------
#!/bin/bash
# Bash postinstall script. Assumes you are running setup.exe 2.510.2.2 or
# newer, meaning that this is executed by /bin/bash and not /bin/sh (if you
# are running an older setup.exe, this postinstall script can't do anything).
#
# Copyright (C) 2007, 2008, 2010 Eric Blake
# This file is free software; I give unlimited permission to copy and/or
# distribute it, with or without modifications, as long as this notice is
# preserved.
# Track any failure in this script.
result=0
# Install /dev/fd, /dev/std{in,out,err}. The bash builtin test was compiled
# to assume these exist, so use /bin/test to really check.
test -d /dev || result=1
/bin/test -h /dev/stdin || ln -sf /proc/self/fd/0 /dev/stdin || result=1
/bin/test -h /dev/stdout || ln -sf /proc/self/fd/1 /dev/stdout || result=1
/bin/test -h /dev/stderr || ln -sf /proc/self/fd/2 /dev/stderr || result=1
/bin/test -h /dev/fd || ln -sf /proc/self/fd /dev/fd || result=1
test $result = 0 || exit $result
-------------------------------------------------------------
Could you clarify a bit ?
Marco
--
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