Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jul 2000 13:59:12 -0700 (PDT)
From:      Jim Freeze <jim@freeze.org>
To:        questions@freebsd.org
Subject:   declare -x
Message-ID:  <Pine.BSF.4.21.0007271356350.93317-100000@web2.sea.nwserv.com>

next in thread | raw e-mail | index | archive | help
I accidently discoverd that I can use 

declare -x ENVVAR="value"

from a bash command line to set an environment variable.

However, I cannot find 'declare' in the man pages (so I don't know what
the -x does) and I cannot run this in a script. Works only from the
command line.

Can someone tell me what 'declare' does, how to automate it in a script,
and where the man pages on it are.

Thanks


============================================
Jim Freeze
jim@freeze.org
--------------
Save on CDs, DVDs, Movies and Books
Visit www.freeze.org
============================================



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0007271356350.93317-100000>