From owner-freebsd-questions@FreeBSD.ORG Sat Jul 10 03:03:40 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26A2C106564A for ; Sat, 10 Jul 2010 03:03:40 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id DD7778FC14 for ; Sat, 10 Jul 2010 03:03:39 +0000 (UTC) Received: from r55.edvax.de (port-92-195-117-232.dynamic.qsc.de [92.195.117.232]) by mx02.qsc.de (Postfix) with ESMTP id 3DD721E562; Sat, 10 Jul 2010 05:03:38 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o6A33bse003026; Sat, 10 Jul 2010 05:03:37 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 10 Jul 2010 05:03:37 +0200 From: Polytropon To: Aiza Message-Id: <20100710050337.418d26c3.freebsd@edvax.de> In-Reply-To: <4C37E09D.7000806@comclark.com> References: <4C37E09D.7000806@comclark.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "questions@freebsd.org" Subject: Re: how to setenv using Bourne .sh X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jul 2010 03:03:40 -0000 On Sat, 10 Jul 2010 10:53:17 +0800, Aiza 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, ...