delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/15/15:49:42

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 15 May 2008 15:49:02 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Chris Howell <chowell AT pyxisinnovation DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Question about link
In-Reply-To: <482C8ECC.9030202@pyxisinnovation.com>
Message-ID: <Pine.GSO.4.63.0805151545540.20114@access1.cims.nyu.edu>
References: <1210879461 DOT 20883 DOT ezmlm AT cygwin DOT com> <482C8ECC DOT 9030202 AT pyxisinnovation DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Thu, 15 May 2008, Chris Howell wrote:

> I am running on Vista, and what I am doing is I open up a Dev Studio
> 2008 command shell. From that command shell I launch cygwin/bash...
> Things like cl.exe are inherited from the first shell I've opened in the
> bash environment. What I want is link to be the path that is found under
> my BIN directory of my DevStudio install. However possibily because
> they're the same name when I query link, or try and use it to make a
> dll. Bash thinks I am using link to make a symbolic link as opposed to a
> dll.
>
> Any suggestions or help would be appreciated.

Hmm, does

export PATH="$(dirname "$(which cl.exe)"):$PATH"

not solve this for you?  You could also do

alias link="$(dirname "$(which cl.exe)")/link.exe"

but that will only give you "link", not "link.exe" (in case you care).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it." -- Rabbi Hillel

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