From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20169 invoked by alias); 25 Dec 2008 15:29:48 -0000 Received: (qmail 20157 invoked by uid 22791); 25 Dec 2008 15:29:47 -0000 X-Spam-Check-By: sourceware.org Received: from pool-96-233-71-199.bstnma.fios.verizon.net (HELO cgf.cx) (96.233.71.199) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 25 Dec 2008 15:28:59 +0000 Received: from ednor.cgf.cx (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 0DED513C026 for ; Thu, 25 Dec 2008 10:28:49 -0500 (EST) Received: by ednor.cgf.cx (Postfix, from userid 201) id BABCC2B35E; Thu, 25 Dec 2008 10:28:48 -0500 (EST) Date: Thu, 25 Dec 2008 15:29:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: 000-cygwin-post-install.sh on Cygwin 1.7 Message-ID: <20081225152848.GA18544@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <0KCF0090F5UK6QXJ@vms173001.mailsrvcs.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0KCF0090F5UK6QXJ@vms173001.mailsrvcs.net> User-Agent: Mutt/1.5.16 (2007-06-09) 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: 2008-12/txt/msg00610.txt.bz2 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: > > $ diff 000-cygwin-post-install.sh.done 000-cygwin-post-install.sh.new > 53,54c53 > < [[ "$line" =~ ([^ ]*)\ on\ ([^ ]*)\ type\ ([^ ]*)\ .* ]] > < if [ "${BASH_REMATCH[2]}" = "/" ] > --- > > if [[ "$line" =~ ([^ ].*)\ on\ /\ type\ ([^ ]*)\ .* ]] > 58c57 > < FS_TYPE="${BASH_REMATCH[3]}" > --- > > FS_TYPE="${BASH_REMATCH[2]}" I think that does the same thing in one line: eval $(/usr/bin/mount -m | sed -n 's%\(.*\) / \([^ ]*\) .*$%CYGROOT=\1 FS_TYPE=\2%p') although it looks like something may be broken because I'm getting "unknown" for all of the FS_TYPEs on my system. cgf -- 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/