From owner-freebsd-questions Thu Jul 27 13:59:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from web2.sea.nwserv.com (web2.sea.nwserv.com [216.145.16.2]) by hub.freebsd.org (Postfix) with ESMTP id 8C43837C0F2 for ; Thu, 27 Jul 2000 13:59:13 -0700 (PDT) (envelope-from jim@freeze.org) Received: from localhost (jfreeze@localhost) by web2.sea.nwserv.com (8.9.3/8.9.2) with ESMTP id NAA08295 for ; Thu, 27 Jul 2000 13:59:12 -0700 (PDT) (envelope-from jim@freeze.org) Date: Thu, 27 Jul 2000 13:59:12 -0700 (PDT) From: Jim Freeze X-Sender: jfreeze@web2.sea.nwserv.com To: questions@freebsd.org Subject: declare -x Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Envelope-To: questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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