delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/18/08:22:44

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
From: "Hannu E K Nevalainen" <garbage_collector AT telia DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: cygpath hangings: A fix - bash patch enclosed -- bash maintainer please note!
Date: Sat, 18 Oct 2003 14:22:04 +0200
Message-ID: <NGBBLLIAMFLGJEOAJCCEAEHPDFAA.garbage_collector@telia.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
In-Reply-To: <20031018060607.GA28198@redhat.com>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

> From: Christopher Faylor
> Sent: Saturday, October 18, 2003 8:06 AM

> I've put a patched version of bash up at:
>
> ftp://sourceware.org/pub/cygwin/tmp/bash.exe
>
> if anyone wants to try this.  It would be good to confirm or deny
> that this fixes the problem for everyone.
>
> Btw, maybe this has already been mentioned, but here is a simple
> test script that demonstrates the problem when run from the console:
>
> #!/bin/bash
> exec 0<&-
> A=$(cygpath -A -P)
> echo $A
>
> Save it as "hang" and run it as "bash hang" and it should hang nicely
> with an unpatched bash.
>
> cgf

The simple test works flawlessly.

$ hang
/cygdrive/f/Documents and Settings/All Users/Start Menu/Programs

$ uname -a
CYGWIN_NT-5.0 P450 1.5.6s(0.94/3/2) 20031002 00:47:53 i686 unknown unknown
Cygwin

I've run my setup-based test with success too.
My gratulations to a task well done.


There seems to be issues with XFree86-bin-icons.sh though
that are _unrelated_ to the hang. (Newcomers: This script was the one that
revealed the problem in the first place.)

To run the script like this from bash, works:
	$ sh.exe -c /etc/postinstall/XFree86-bin-icons.sh.done
when it gets run from setup the task is just partially done.

This is "elaborated" below.
I'll be looking into this as time permits, FWIW.

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
--

$ sh.exe -c /etc/preremove/XFree86-bin-icons.sh
rmdir: removing directory, <SNIP>

$ mv /etc/postinstall/XFree86-bin-icons.sh.done \
     /etc/postinstall/XFree86-bin-icons.sh

$ cygstart /install/setup.exe

# Please note that I've changed the path slightly here,
# it was 'Cygwin-XFree86'. ( I wouldn't say "boo" to the
# change appearing in the XFree86-bin-incons package.
# It lessens the amount of entries in first level of the menu. )
# This doesn't make any difference wrt to the malfunction.

$ cd "`cygpath -AP`/Cygwin/XFree86";find -type f; cd
./Editors/Emacs.lnk
./RXVT.lnk
./Tools/Python IDE.lnk

$ sh.exe -c /etc/postinstall/XFree86-bin-icons.sh.done

$ cd "`cygpath -AP`/Cygwin/XFree86";find -type f; cd
./Bitmap Editor.lnk
./Calculator.lnk
./Clock.lnk
./Ditroff output viewer.lnk
./DVI viewer.lnk
./Editors/Emacs.lnk
./Editors/Simple file editor.lnk
./Games/DPS demo asteroids game.lnk
./GUI for the MH mail system.lnk
./Information/A single window.lnk
./Information/Display information.lnk
./Information/Display the propertis of a window.lnk
./Information/GLX information.lnk
./Information/List all available fonts.lnk
./Information/List all connected clients.lnk
./Information/List available atoms.lnk
./Information/List available FreeType fonts.lnk
./Information/List rgb database.lnk
./Information/The Display PostScript extension.lnk
./Information/The font server.lnk
./Information/The TRAP extension.lnk
./Information/The X-Video Extension.lnk
./mail checker.lnk
./Manual page reader.lnk
./RXVT.lnk
./Shaped Clock.lnk
./Tools/Clipboard manipulator.lnk
./Tools/Console.lnk
./Tools/Display PostScript command interface.lnk
./Tools/Dump X11 window image to file.lnk
./Tools/Kill an X11 window.lnk
./Tools/magnifying glass.lnk
./Tools/Pick a font.lnk
./Tools/Python IDE.lnk
./Tools/Refresh all X11 clients.lnk
./Tools/X11 event debugger.lnk
./Tools/Xaw resource editor.lnk
./Tools/Xaw resource viewer.lnk
./Toys/Bouncing Icosohedron.lnk
./Toys/Display the X11 logo.lnk
./Toys/Gear Demo.lnk
./Toys/Watches the Mouse.lnk
./Toys/X11 demo.lnk
./X Terminal.lnk


--END OF MESSAGE--


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019