From owner-freebsd-questions@FreeBSD.ORG Sat Jul 10 23:08:48 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EA4A106564A for ; Sat, 10 Jul 2010 23:08:48 +0000 (UTC) (envelope-from aiza21@comclark.com) Received: from avmxsmtp3.comclark.com (avmxsmtp3.comclark.com [202.69.191.117]) by mx1.freebsd.org (Postfix) with ESMTP id 285858FC12 for ; Sat, 10 Jul 2010 23:08:47 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlMWAGqaOEzKRa3YOWdsb2JhbAAHh2iYaAEBAQE0Ab1ThScEg3mHDQ X-IronPort-AV: E=Sophos;i="4.55,181,1278259200"; d="scan'208";a="9854968" Received: from unknown (HELO [10.0.10.3]) ([202.69.173.216]) by avmxsmtp2.comclark.com with ESMTP; 11 Jul 2010 07:08:46 +0800 Message-ID: <4C38FD7D.1090901@comclark.com> Date: Sun, 11 Jul 2010 07:08:45 +0800 From: Aiza User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Polytropon References: <20100710185345.4d3b69bf.freebsd@edvax.de> In-Reply-To: <20100710185345.4d3b69bf.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: bf1783@gmail.com, "b. f." , freebsd-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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jul 2010 23:08:48 -0000 Polytropon wrote: > On Sat, 10 Jul 2010 11:43:13 +0000, "b. f." wrote: >> Polytropon wrote: >> 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. >> It looks like he is actually using csh, because in the Bourne shell >> issuing that command usually yields "setenv: not found". His problem >> is that, unlike "export", setenv doesn't take an "=" between the >> variable and the value to be assigned to it. See csh(1). > > Yes, you're right of course, I didn't notice that. The correct > syntax for the setenv command in the C shell is > > setenv VAR "value" > > > >> When you are directed to builtin(1), it usually means that you should >> refer to the manpage(s) of the shell that you are using for the >> information that you need. > > That's why I suggested looking at csh's manpage. :-( > I am using root and have a pristine install on freebsd 8.0 so what ever the default shell for root is, is what I am using.