Date: Sat, 10 Jul 2010 05:03:37 +0200 From: Polytropon <freebsd@edvax.de> To: Aiza <aiza21@comclark.com> Cc: "questions@freebsd.org" <questions@freebsd.org> Subject: Re: how to setenv using Bourne .sh Message-ID: <20100710050337.418d26c3.freebsd@edvax.de> In-Reply-To: <4C37E09D.7000806@comclark.com> References: <4C37E09D.7000806@comclark.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 10 Jul 2010 10:53:17 +0800, Aiza <aiza21@comclark.com> wrote: > Trying the set the pkg_add environment variable PKGDIR using this > > > setenv PKGDIR="/usr/packages" and get this error message > setenv: Syntax Error. Of course. The sh shell doesn't have setenv. > man setenv is useless. The manual entry of setenv can be found in "man csh". :-) > The question is how do I set a environment variable using the default > freebsd shell? You mean: FreeBSD's default scripting shell. :-) $ PKGDIR="/usr/packages" $ export PKGDIR or $ export PKGDIR="/usr/packages" Refer to "man sh" for details. The setenv command is a built-in for the C Shell. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100710050337.418d26c3.freebsd>