delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/20/10:19:10

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=HNbieXvaDyqCr1rnp76E4SPzKdHgT11rGmBKKHq1rZ7
3BPTb+WbpuqGjxja+tkA7KpTRIo/0ruRTcwQYHZo1TolkRFjdBAO2hW0+dRP7muf
T5CEbk+syydvywTAXMLOdGCnkgH+4LNs3JbNb5gD62M7IP960MKFxtxHhfgjxeyY
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=IKI2YbuNIS0QrKhj8lPgAmZxhjc=; b=laSE7dngSoe5hcEK3
n9iMEldZXrQ14H4rNKtbypfy9O1FSY/KiBQ/h7GlYC8kxbGCxQO8awabaH7MiOaV
VIZfftGy9hjmqJHBCo/9b3ZSVHf43ecE6dBjvatGb7TyAxLFSzVRbyUimQr+koxB
ovUEueG6oFPGrLvK5d9gC7wy2g=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mout.gmx.net
Message-ID: <53061CD2.4000402@mail.com>
Date: Thu, 20 Feb 2014 10:18:42 -0500
From: Todd Poole <tpoole AT mail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Setup Path
References: <530600B8 DOT 6050504 AT mail DOT com> <0D835E9B9CD07F40A48423F80D3B5A702CDE5DF8 AT USA7109MB022 DOT na DOT xerox DOT net> <530618D6 DOT 4030604 AT cs DOT umass DOT edu>
In-Reply-To: <530618D6.4030604@cs.umass.edu>
X-IsSubscribed: yes

Thank you very much for information. I think I can get it now.

Todd Poole

On 2/20/2014 10:01 AM, Eliot Moss wrote:
> On 2/20/2014 8:34 AM, Nellis, Kenneth wrote:
>> From: Todd Poole
>>> Hi all
>>> Really new to Cygwin. Is there a way to setup Cygwin so when I got to
>>> terminal to type a command I don't have to enter the complete path as
>>> shown here:
>>>
>>> $ cd /cygdrive/c/directory name
>>>
>>> Anyway to setup to where I might just enter
>>>
>>> $ c/directory name
>>>
>>> or something like it?
>>
>> I suggest you look into the CDPATH environment variable.
>
> That would simplify what you type as an argument to the cd command.
>
> If you are wanting to be able to invoke a command foo without typing
> its whole path, then you need its directory in the PATH variable.
> PATH in cygwin is similar to PATH on Windows, but the format is
> more like Unix: / instead of \, : instead of ;, and so on.  The
> command:
>
> echo $PATH
>
> will show you the default.  You can add a directory to be searched
> after the default ones by doing something like:
>
> PATH="${PATH}:additional-directory"
>
> The quotes are important if anything in PATH has spaces or other "strange"
> characters.
>
> By the way, this is standard Unix / bash stuff.  cygwin kind of assumes
> that you
> are familiar with Unix, since its purpose is to offer a Unix-like
> environment
> on Windows.  (bash, the Bourne-again shell, is the default shell brought
> up in
> a cygwin terminal window.)
>
> Best wishes -- Eliot Moss
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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