From owner-freebsd-questions@FreeBSD.ORG Sun Jul 11 07:50:34 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 8A155106566C for ; Sun, 11 Jul 2010 07:50:34 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1BC338FC1C for ; Sun, 11 Jul 2010 07:50:33 +0000 (UTC) Received: by fxm13 with SMTP id 13so1976843fxm.13 for ; Sun, 11 Jul 2010 00:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=yaiVqVaPMBJA9SGDsBZa+8N2rNSQ2RIxgoET4mSdSEA=; b=Rww+ffo2fBVt2zbC4/Q3ZS+i9fRKa3t3KaeyIqtNP7vj5qP6HYlgSh5oYGZpAxl8gq y1DOl1plKmnwnPhYn6ulSlB/SvtIrjp61UwqgQpVwFWC8muUPQ56VYLEpZNwxiW6ehJY AveBP/HFOrYkLeK0kVeFQxyFL0OlSD5CGCScY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=BEjTVOjnsBAmu6uyN4G5hWVjKVqhWtcKMxFnxacAR3+HDyge3ycE+dJ23ecyNFmedw XLokqlzswxLdrLRU6RQC9N+BZwAsgvwRwRdscDebtALeTHgHZ/pN7ok7cotP5s/JVQSO DAlpw0x0lm0zcmPFilyiEnA0qlbn6z0qMGRfg= MIME-Version: 1.0 Received: by 10.239.160.132 with SMTP id c4mr926591hbd.171.1278834632631; Sun, 11 Jul 2010 00:50:32 -0700 (PDT) Received: by 10.239.155.81 with HTTP; Sun, 11 Jul 2010 00:50:32 -0700 (PDT) In-Reply-To: <4C3907FA.3020204@bah.homeip.net> References: <20100710185345.4d3b69bf.freebsd@edvax.de> <4C38FD7D.1090901@comclark.com> <4C3907FA.3020204@bah.homeip.net> Date: Sun, 11 Jul 2010 08:50:32 +0100 Message-ID: From: krad To: Bernt Hansson , Aiza , bf1783@gmail.com, Polytropon , "b. f." , freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Mon, 12 Jul 2010 11:29:31 +0000 Cc: 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: Sun, 11 Jul 2010 07:50:34 -0000 You could do an echo $SHELL On 7/11/10, Bernt Hansson wrote: > 2010-07-11 01:08, Aiza skrev: >> 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. > > It's csh then. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- Sent from my mobile device