delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/31/10:23:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Wed, 31 Aug 2005 10:23:17 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Weiqi Gao <weiqigao AT gmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: how to run a program from the bash console
In-Reply-To: <2ee1c2b30508310716531e6b45@mail.gmail.com>
Message-ID: <Pine.GSO.4.63.0508311021280.3395@slinky.cs.nyu.edu>
References: <4315BB19 DOT 2080100 AT vt DOT edu> <2ee1c2b30508310716531e6b45 AT mail DOT gmail DOT com>
MIME-Version: 1.0

On Wed, 31 Aug 2005, Weiqi Gao wrote:

> On 8/31/05, William Creel <wdcdw AT XX DOT XXX> wrote:

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> > I am attempting to run a Windows program from the Bash console.  I
> > have attempted modifying my path in the .bash_profile file in my home
> > directory with the following line:
> >
> > PATH=/cygdrive/c/'Program Files'/'<program folder>'/<program
> > executable>:$PATH
> > export PATH
> >
> > This does not appear to work.  Does anyone know how to do this?
>
> Should be
>
> PATH=/cygdrive/c/'Program Files'/'<program folder>'/:$PATH
> export PATH
>
> The program executable's name should not be part of the PATH
> enironment variable.

Actually, it should be

PATH=/cygdrive/c/'Program Files'/'<program folder>'/:"$PATH"
export PATH

since PATH in Windows usually already has spaces in it.  This could be
simplified to

PATH="/cygdrive/c/Program Files/<program folder>/:$PATH"

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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