[Pdx-pm] DBD::mysql cont.
Austin Schutz
tex at off.org
Wed Mar 31 11:50:11 CST 2004
On Wed, Mar 31, 2004 at 12:22:44PM -0500, Jeff Lavallee wrote:
> James - I have always used
>
> tcsh$ setenv FOO bar
>
Probably works better than set FOO bar. Here's a tidbit from the
handy 'man tcsh' command. Esp note the tidbit about "null string":
set
set name ...
set name=word ...
set [-r] [-f|-l] name=(wordlist) ... (+)
set name[index]=word ...
set -r (+)
set -r name ... (+)
set -r name=word ... (+)
The first form of the command prints the value of
all shell variables. Variables which contain more
than a single word print as a parenthesized word
list. The second form sets name to the null
string. The third form sets name to the single
word. The fourth form sets name to the list of
words in wordlist. In all cases the value is com
mand and filename expanded. If -r is specified,
the value is set read-only. If -f or -l are spec
ified, set only unique words keeping their order.
-f prefers the first occurrence of a word, and -l
the last. The fifth form sets the index'th compo
nent of name to word; this component must already
exist. The sixth form lists only the names of all
shell variables that are read-only. The seventh
form makes name read-only, whether or not it has a
value. The second form sets name to the null
string. The eighth form is the same as the third
form, but make name read-only at the same time.
These arguments can be repeated to set and/or make
read-only multiple variables in a single set com
mand. Note, however, that variable expansion hap
pens for all arguments before any setting occurs.
Note also that `=' can be adjacent to both name
and word or separated from both by whitespace, but
cannot be adjacent to only one or the other. See
also the unset builtin command.
setenv [name [value]]
Without arguments, prints the names and values of
all environment variables. Given name, sets the
environment variable name to value or, without
value, to the null string.
More information about the Pdx-pm-list
mailing list