From owner-freebsd-questions@FreeBSD.ORG Sat Jul 10 16:53:49 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 A80C51065674 for ; Sat, 10 Jul 2010 16:53:49 +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 67E768FC18 for ; Sat, 10 Jul 2010 16:53:49 +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 4F5701E600; Sat, 10 Jul 2010 18:53:47 +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 o6AGrjmI001448; Sat, 10 Jul 2010 18:53:46 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 10 Jul 2010 18:53:45 +0200 From: Polytropon To: bf1783@gmail.com Message-Id: <20100710185345.4d3b69bf.freebsd@edvax.de> In-Reply-To: References: 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: Aiza , Polytropon , "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 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 16:53:49 -0000 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. :-( -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...