Date: Sun, 11 Jul 2010 08:50:32 +0100 From: krad <kraduk@googlemail.com> To: Bernt Hansson <bernt@bah.homeip.net>, Aiza <aiza21@comclark.com>, bf1783@gmail.com, Polytropon <freebsd@edvax.de>, "b. f." <bf1783@googlemail.com>, freebsd-questions@freebsd.org Subject: Re: how to setenv using Bourne .sh Message-ID: <AANLkTikRPMBXAWpQPZtj_xYfQg2fT7qYlDOxENPFU65g@mail.gmail.com> In-Reply-To: <4C3907FA.3020204@bah.homeip.net> References: <AANLkTiklf4jVVPXKsSKAYHHas9t4mhfBgm-BMBokTb5F@mail.gmail.com> <20100710185345.4d3b69bf.freebsd@edvax.de> <4C38FD7D.1090901@comclark.com> <4C3907FA.3020204@bah.homeip.net>
next in thread | previous in thread | raw e-mail | index | archive | help
You could do an echo $SHELL On 7/11/10, Bernt Hansson <bernt@bah.homeip.net> wrote: > 2010-07-11 01:08, Aiza skrev: >> Polytropon wrote: >>> On Sat, 10 Jul 2010 11:43:13 +0000, "b. f."<bf1783@googlemail.com> >>> wrote: >>>> Polytropon wrote: >>>> On Sat, 10 Jul 2010 10:53:17 +0800, Aiza<aiza21 at 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. >>>> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikRPMBXAWpQPZtj_xYfQg2fT7qYlDOxENPFU65g>