From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1005 invoked by alias); 24 Jan 2009 02:22:55 -0000 Received: (qmail 997 invoked by uid 22791); 24 Jan 2009 02:22:55 -0000 X-SWARE-Spam-Status: No, hits=4.9 required=5.0 tests=BAYES_20,BOTNET,SPF_NEUTRAL X-Spam-Check-By: sourceware.org Received: from vms173009pub.verizon.net (HELO vms173009pub.verizon.net) (206.46.173.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 24 Jan 2009 02:22:51 +0000 Received: from ADRIENNE.ieee.org ([68.239.24.48]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KDY00E8LEDR5RJ2@vms173009.mailsrvcs.net> for cygwin@cygwin.com; Fri, 23 Jan 2009 20:17:52 -0600 (CST) Message-id: <0KDY00E8QEDS5RJ2@vms173009.mailsrvcs.net> Date: Sat, 24 Jan 2009 08:51:00 -0000 To: cygwin@cygwin.com From: "Pierre A. Humblet" Subject: Re: 000-cygwin-post-install.sh on Cygwin 1.7 In-reply-to: <7.1.0.9.0.20081225005430.01990e10@ieee.org> References: <7.1.0.9.0.20081225005430.01990e10@ieee.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-01/txt/msg00716.txt.bz2 On Thu, Dec 25, 2008 at 10:28:48AM -0500, Christopher Faylor wrote: >On Thu, Dec 25, 2008 at 01:23:35AM -0500, Pierre A. Humblet wrote: >> I tried to install Cygwin 1.7 under "Program Files", as I have always done >> with 1.5. >> It didn't work. Here is a fix: > >I think that does the same thing in one line: > >eval $(/usr/bin/mount -m | sed -n 's%\(.*\) / \([^ ]*\) .*$%CYGROOT=\1 FS_TYPE=\2%p') Almost. Quotes are needed otherwise \040 becomes 040 Pierre $ diff -up 000-cygwin-post-install.sh.done 000-cygwin-post-install.sh.new --- 000-cygwin-post-install.sh.done 2008-12-28 00:55:13.001000000 -0500 +++ 000-cygwin-post-install.sh.new 2009-01-23 21:07:27.635159600 -0500 @@ -48,7 +48,7 @@ then _OLD_IFS="$IFS" IFS=" " - eval $(/bin/mount -m | /bin/sed -n 's%\(.*\) / \([^ ]*\) .*$%CYGROOT=\1 FS_TYPE=\2%p') + eval $(/bin/mount -m | /bin/sed -n 's%\(.*\) / \([^ ]*\) .*$%CYGROOT="\1" FS_TYPE=\2%p') cat > ${FSTAB} << EOF # The file fstab contains descriptive information about the various file # systems. fstab is only read by programs, and not written; it is the -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/