This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Re: B19: Installation of Cygwin32 into directory with spaces in name


David Campbell wrote:

> Hi,
>
> When I first installed CygWin32, the directory I installed it in was
> under D:\Program Files.  I found that to run shell scripts properly,
> I had to uninstall Cygwin32 and reinstall it under a directory which
> had no spaces in its pathname, otherwise shells interpreting scripts
> could never be executed (it tries to run Files/....).

Another solution to the problem is to include the following as the first line
of your
.bashrc:

export PATH=`echo $PATH | sed -e 's/Program Files/Progra~1/g'`

It's a serious hack and may require an explicit path to sed (echo is a
builtin) depending
on your path, but it works just fine.

--
Stephen Vance                           |  http://www.deneb.com
Deneb Robotics, Inc.                    |  mailto:vance@deneb.com
5500 New King Street                    |  Phone: (248) 267-9696
Troy, MI 48098-2615                     |  Fax:   (248) 267-8585

What is done well is done quickly enough. -Augustus Caesar



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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