* 000-cygwin-post-install.sh on Cygwin 1.7
@ 2008-12-25 6:26 Pierre A. Humblet
2008-12-25 15:29 ` Christopher Faylor
0 siblings, 1 reply; 5+ messages in thread
From: Pierre A. Humblet @ 2008-12-25 6:26 UTC (permalink / raw)
To: cygwin
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]}"
Pierre
--
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 000-cygwin-post-install.sh on Cygwin 1.7
2008-12-25 6:26 000-cygwin-post-install.sh on Cygwin 1.7 Pierre A. Humblet
@ 2008-12-25 15:29 ` Christopher Faylor
2008-12-25 16:06 ` Christopher Faylor
0 siblings, 1 reply; 5+ messages in thread
From: Christopher Faylor @ 2008-12-25 15:29 UTC (permalink / raw)
To: cygwin
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 000-cygwin-post-install.sh on Cygwin 1.7
2008-12-25 15:29 ` Christopher Faylor
@ 2008-12-25 16:06 ` Christopher Faylor
0 siblings, 0 replies; 5+ messages in thread
From: Christopher Faylor @ 2008-12-25 16:06 UTC (permalink / raw)
To: cygwin
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:
>>
>> $ 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.
I've updated this package to base-cygwin-1.1-2.tar.bz2 (Corinna can make
a real 1.2-1 release with whatever fix she deems acceptable at some
point) and fixed the above problem in the DLL.
I'll roll a new 1.7 release today or tomorrow. For now, there is a snapshot
available.
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 000-cygwin-post-install.sh on Cygwin 1.7
2009-01-24 8:51 ` Pierre A. Humblet
@ 2009-01-24 20:30 ` Corinna Vinschen
0 siblings, 0 replies; 5+ messages in thread
From: Corinna Vinschen @ 2009-01-24 20:30 UTC (permalink / raw)
To: cygwin
On Jan 23 21:21, Pierre A. Humblet wrote:
> $ 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
Fixed and uploaded.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 000-cygwin-post-install.sh on Cygwin 1.7
[not found] <7.1.0.9.0.20081225005430.01990e10@ieee.org>
@ 2009-01-24 8:51 ` Pierre A. Humblet
2009-01-24 20:30 ` Corinna Vinschen
0 siblings, 1 reply; 5+ messages in thread
From: Pierre A. Humblet @ 2009-01-24 8:51 UTC (permalink / raw)
To: cygwin
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:
<snip>
>
>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/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-01-24 9:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-25 6:26 000-cygwin-post-install.sh on Cygwin 1.7 Pierre A. Humblet
2008-12-25 15:29 ` Christopher Faylor
2008-12-25 16:06 ` Christopher Faylor
[not found] <7.1.0.9.0.20081225005430.01990e10@ieee.org>
2009-01-24 8:51 ` Pierre A. Humblet
2009-01-24 20:30 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).