Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!cse!convex!egsner!swsrv1!toma From: toma@swsrv1.cirr.com (Tom Armistead) Newsgroups: comp.unix.questions Subject: Re: How do you use CDPATH? Message-ID: <1991May3.070603.3751@swsrv1.cirr.com> Date: 3 May 91 07:06:03 GMT References: <1991May2.203153.13842@mnemosyne.cs.du.edu> Organization: Software Services: Garland, Tx Lines: 27 In article <1991May2.203153.13842@mnemosyne.cs.du.edu> jscott@isis.cs.du.edu (James Scott) writes: >How do you use the environment variable CDPATH? I'm using >both ATT SysV.3's sh and ntcsh version 5.12. >Thanx, > James > >-- >========================================================================= >James Scott scott@gwhs.colorado.edu > jscott@isis.cs.du.edu >George Washington H.S., Denver gwhs@csn.org The CDPATH env var is used by the shell cd command. cd will search for the named directory along the path specified by CDPATH and if it finds it, will change to it. This allows you to change to directories without specifying the full path. Ex. $ CDPATH=$HOME:/usr:/usr/local;export CDPATH $ mkdir $HOME/testing $ cd / $ cd testing Tom -- Tom Armistead - Software Services - 2918 Dukeswood Dr. - Garland, Tx 75040 =========================================================================== toma@swsrv1.cirr.com {egsner,letni,ozdaltx,void}!swsrv1!toma