| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| Date: | Thu, 25 Dec 2008 10:28:48 -0500 |
| From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: 000-cygwin-post-install.sh on Cygwin 1.7 |
| Message-ID: | <20081225152848.GA18544@ednor.casa.cgf.cx> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <0KCF0090F5UK6QXJ AT vms173001 DOT mailsrvcs DOT net> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <0KCF0090F5UK6QXJ@vms173001.mailsrvcs.net> |
| User-Agent: | Mutt/1.5.16 (2007-06-09) |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Note-from-DJ: | This may be spam |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |