Sponsored Content
Full Discussion: $cdpath?
Top Forums UNIX for Dummies Questions & Answers $cdpath? Post 9854 by Fwurm on Monday 5th of November 2001 02:58:50 AM
Old 11-05-2001
Question $cdpath?

Hello

I just read about some Shell variables. There is one named CDPATH. Could some one breifly explain how to use it and what that the purpose is of it?

I issued echo $CDPATH but the output was nothing.

Thanx
Marcus
 

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
PARSE_STR(3)								 1							      PARSE_STR(3)

parse_str - Parses the string into variables

SYNOPSIS
void parse_str (string $str, [array &$arr]) DESCRIPTION
Parses $str as if it were the query string passed via a URL and sets variables in the current scope. Note To get the current QUERY_STRING, you may use the variable $_SERVER['QUERY_STRING']. Also, you may want to read the section on vari- ables from external sources. Note The magic_quotes_gpc setting affects the output of this function, as parse_str(3) uses the same mechanism that PHP uses to populate the $_GET, $_POST, etc. variables. PARAMETERS
o $str - The input string. o $arr - If the second parameter $arr is present, variables are stored in this variable as array elements instead. RETURN VALUES
No value is returned. EXAMPLES
Example #1 Using parse_str(3) <?php $str = "first=value&arr[]=foo+bar&arr[]=baz"; parse_str($str); echo $first; // value echo $arr[0]; // foo bar echo $arr[1]; // baz parse_str($str, $output); echo $output['first']; // value echo $output['arr'][0]; // foo bar echo $output['arr'][1]; // baz ?> SEE ALSO
parse_url(3), pathinfo(3), http_build_query(3), get_magic_quotes_gpc(3), urldecode(3). PHP Documentation Group PARSE_STR(3)
All times are GMT -4. The time now is 04:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy