This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Postinstall hangs with bash

> From: Ronald Landheer-Cieslak

> On Wed, Oct 01, 2003 at 03:11:40AM +0200, Bertalan Fodor wrote:
> > I've overwritten sh.exe with bash.exe
> Don't do that.
> > With this setting cygpath hangs in
> >
> > ROOT=$(cygpath -w /)
> >
> > It is interesting.
> >
> > Using sh it is ok.
> $ ROOT=$(cygpath -w /)
> $ echo $ROOT
> D:\cygwin
> rlc

I have a similar issue, reported by others too...

 The strange thing here seems to be that it works from the shell.
But NOT when the same script runs from setup.exe


both call "/usr/X11R6/bin/"  (+" -d" for remove)

$ head -1 /usr/X11R6/bin/
#! /bin/bash

(Hmm... does that #!<SPACE>/bin/bash have an impact? Nahh?)

This script does ". /etc/X11/icon-list" where you find:

	# This is the root for the icon creation.
	TOPFOLDER="$(cygpath -A -P)/Cygwin-XFree86"

This works nicely from bash, but fails (i.e. hangs) when setup.exe launches
it. You can see cygpath.exe, hanging around forever, from the Windows task
manager. Kill it and the install process proceeds. (that particular script

I've done attempts at debugging this, but time has been a huge limitation so
far. IIUC I need to mess around with setup.ini and that particular package.
I need to read up on how this is supposed to work; has not happened yet.

My cygwin is all the latest running as Administrator on W2K SP4+, residing
on a FAT32 partition. I'm using setup.exe 2.415

$ uname -a
CYGWIN_NT-5.0 P450 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown

$ getfacl `which cygpath`
# file: /usr/bin/cygpath
# owner: Hannu
# group: user

$ command ls -lan `which cygpath`
-rwxr-xr-x    1 500      513         14336 Sep 20 22:32 /usr/bin/cygpath

$ cygpath --version
cygpath (cygwin) 1.29
Path Conversion Utility
Copyright 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
Compiled on Sep 20 2003


/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]