X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_YG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4C656BF9.6060905@redhat.com> Date: Fri, 13 Aug 2010 09:59:53 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.1.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: cygwin 1.7: why there is a directory E/cygwin/dev in the tree of cygwin ? References: <485797401003160836l4a74aee2q527fa059765502a9 AT mail DOT gmail DOT com> <20100316154432 DOT GB18610 AT ednor DOT casa DOT cgf DOT cx> <416096c61003160854v4f18669ep57635447a8b55061 AT mail DOT gmail DOT com> <4B9FE12F DOT 4020008 AT hones DOT org DOT uk> <485797401003170119v484779f0p28304ffe1491951 AT mail DOT gmail DOT com> <4BA11DB7 DOT 8030804 AT redhat DOT com> <20100317182840 DOT GW6505 AT calimero DOT vinschen DOT de> In-Reply-To: <20100317182840.GW6505@calimero.vinschen.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigA97D2C108CC55496B788DA14" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 --------------enigA97D2C108CC55496B788DA14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable [reviving an old thread, relevant to today's current bash postinstall failures] On 03/17/2010 12:28 PM, Corinna Vinschen wrote: > On Mar 17 12:21, Eric Blake wrote: >> On 03/17/2010 02:19 AM, rolandc wrote: >>> I do not understand why the postinstall script bash.sh is so complex >>> >>> DEVDIR=3D"$(cygpath -au "C:/$(cygpath -am /dev/)" | sed 's|/c/\(.\)= :/|/\1/|')" >>> mkdir -p "$DEVDIR" || result=3D1 >>> >>> it would be simple (too simple?) to >>> mkdir -p /dev || result=3D1 >> >> Yes, it would be too simple. /dev already exists, so the mkdir would >> fail to do anything useful. We REALLY want to create the underlying >> Windows directory at the same location at where /dev would be mounted, >> and to do that, we really do want to know the windows location (drive >> letter and all) of /. Then, by using mkdir of that fancy windows path >> that happens to live at the same place as where /dev normally resolves >> to, then we can guarantee that /dev/stdin gets created as an actual >> symlink in the windows heirarchy (since it does NOT resolve via the /dev >> magic mount point), and that tab-completion can see any contents placed >> into the windows counterpart directory. >=20 > Nothing of this should be necessary since the 000-cygwin-post-install.sh > script from the base-cygwin package already creates /dev. Interesting - cygwin 1.7 is much nicer in regards to letting 'mkdir /dev' succeed without having to go through cygpath hoops. I'm building a new bash package now that should fix all this mess, by using the same means as 000-cygwin-post-install.sh to populate necessary entries into /dev. --=20 Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enigA97D2C108CC55496B788DA14 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJMZWv5AAoJEKeha0olJ0NqVAsIAKooSK3hGG1Bo1yqgftcrTiK Vgrzd9SIDwAioV/Wl9NRxr0xUfmbCwr3UzWZtWJe6uuigJhZBj4u8UlFs2drS4Yf ULNjBG+Usvmy4mfkos/syW+k4Y0z58P1J1tF7AbB1XehkarzTtLh452S19MbNzW7 sS77XiOVG/TIoEOQv/6wWgwOWO+OKNV2lIsHnhrT8J9RMUKrfZhCEiSoIXf2GKQ+ 2+g2c6oUpTqGDHvLjDs9HlvZkLOsync0wfaIVcujefeHmY29QgzQPD1JhzJlA6D1 2ARYqafpB90mIKD/HYj4Ng2NrkyPf1gKOvBcwxIm9zVMm3q/3/zTNNP8SWUQUQw= =BhGv -----END PGP SIGNATURE----- --------------enigA97D2C108CC55496B788DA14--