Sponsored Content
Full Discussion: $cdpath?
Top Forums UNIX for Dummies Questions & Answers $cdpath? Post 9901 by marist89 on Monday 5th of November 2001 11:33:45 AM
Old 11-05-2001
CDPATH, when set, will tell the cd command to search those paths when looking for the target directory. For example:
% echo $CDPATH
.:/usr/local
% pwd
/home/myuser
% cd bin
% pwd
/usr/local/bin
 

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cdpath

i add a new path to CDPATH but i cannot go to that path the error is as follows: export CDPATH:$CDPATH:/home/dir1/dir2 cd dir2 ksh: dir2: not found what is the problem? (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies

2. UNIX for Dummies Questions & Answers

environment variables in cdpath

CDPATH=.:/users/:/users/user1/:/users/user1/dir1/ is ok but CDPATH=.:$HOME/:$HOME/dir1/ fails although $HOME=/users/user1 why? (3 Replies)
Discussion started by: gfhgfnhhn
3 Replies
_ENV(3) 								 1								   _ENV(3)

$_ENV - Environment variables

	An associative array of variables passed to the current script via the environment method.

	These  variables are imported into PHP's global namespace from the environment under which the PHP parser is running. Many are provided by
       the shell under which PHP is running and different systems are likely running different kinds of shells, a definitive list  is  impossible.
       Please see your shell's documentation for a list of defined environment variables.

	Other environment variables include the CGI variables, placed there regardless of whether PHP is running as a server module or CGI proces-
       sor.

       $HTTP_ENV_VARS contains the same initial information, but is not a superglobal. (Note that $HTTP_ENV_VARS and $_ENV are different variables
       and that PHP handles them as such)

       +--------+---------------------------------------------------+
       |Version |						    |
       |	|						    |
       |	|		     Description		    |
       |	|						    |
       +--------+---------------------------------------------------+
       | 4.1.0	|						    |
       |	|						    |
       |	|  Introduced $_ENV that deprecated $HTTP_ENV_VARS. |
       |	|						    |
       +--------+---------------------------------------------------+
       Example #1

	      $_ENV example

	      <?php
	      echo 'My username is ' .$_ENV["USER"] . '!';
	      ?>

	       Assuming "bjori" executes this script

	      The above example will output something similar to:

	      My username is bjori!

       Note

	      This  is	a  'superglobal', or automatic global, variable. This simply means that it is available in all scopes throughout a script.
	      There is no need to do global $variable; to access it within functions or methods.

       getenv(3), The filter extension.

PHP Documentation Group 														   _ENV(3)
All times are GMT -4. The time now is 08:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy