From owner-freebsd-questions@FreeBSD.ORG Sat Jul 10 12:36:54 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 1893E106564A for ; Sat, 10 Jul 2010 12:36:54 +0000 (UTC) (envelope-from freebsd.user@seibercom.net) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id BB3D98FC17 for ; Sat, 10 Jul 2010 12:36:53 +0000 (UTC) Received: by qyk30 with SMTP id 30so913821qyk.13 for ; Sat, 10 Jul 2010 05:36:42 -0700 (PDT) Received: by 10.224.43.197 with SMTP id x5mr6377954qae.204.1278765402501; Sat, 10 Jul 2010 05:36:42 -0700 (PDT) Received: from scorpio.seibercom.net (c-67-189-160-65.hsd1.ny.comcast.net [67.189.160.65]) by mx.google.com with ESMTPS id q30sm9117448qcq.12.2010.07.10.05.36.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 10 Jul 2010 05:36:41 -0700 (PDT) Received: from scorpio (zeus [192.168.1.1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: FreeBSD.user@scorpio.seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id CBEE4E54809 for ; Sat, 10 Jul 2010 08:36:39 -0400 (EDT) Date: Sat, 10 Jul 2010 08:36:39 -0400 From: Jerry To: freebsd-questions@freebsd.org Message-ID: <20100710083639.35b154d3@scorpio> In-Reply-To: References: Organization: seibercom.net X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd8.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEX3/uPVnZf2/v9ejGkqHB74++H///+cHCT3m6cgqYvfAAACbElEQVQ4jWXTQW/bIBQAYJLJuRMn8TVCss9zTdrrXJ6bHe1Ej/bossF9EpJ3nbapf3sP8JxOQ4qV8OU9HvjBROWcYNlKHtxlQ1/huBaOBiMwQtgHhbokMLIT76Acps5hvy61+6WsjkCZzNEW0+fcQ7Nl5uoPCegjjjhN5/MEABd89k9hXkQoX6cwPIDKCt8tYG5wpmdrxAyuolTPqpiVoEpVCWvl6e00RAD4JBJQnO4lvv0O4Cnd3WUGevYNFohxFYAy7jCCtW39LaQK8BgDAgiHVinVJlCiFKlcqgEHfwb1EuG+DwFGMO3oCIuJIEYoa8KJECBB+UBldgm0MQmEGz7GQr8XYRPKzYNO1zZ8mgdAu4BG5Ke/4KFboM8458UScViAAvYD93OAsu+Bc3zxCU7ZAjT74+dQv9K7oO0d1wuscop48Pc50O5bcVwgGzh/mXzaizJuAWERh8k3eaxKmxu4kV1p2XOEg3i3c8M+EKR93P0D1KATpC55vMHaGqFf5f/AwhlrhHgg8DTezopt6I3o3Qx4q4q6YaPxK8RxcClXeFGhTTS++QR6TS/oBs7l4WhzuNMubZG6hIBkF4qqZVdWczIqSrjKVF/i4o26IP2oElBGFy5CXKSnf6UWDTC6zKSqoAvzsakjjBvdzLKnmxdhY8eRsX7VSCUBdgD1hVJpx6y2OOS1DNDILYmqdWUJ+oHvd0rRvAqX5kpxQMR6yxHzPV6VlPFyWE7LKc36keNQI64gLP8Ybgtmg+zYuBl4fuI8VqW2RqDGE8Uzu7GxGa803whDdxx3bSZbRhfQUSxvmnpLZWpRFqHz7v8AvsBe0S1zv9UAAAAASUVORK5CYII= Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: how to setenv using Bourne .sh X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jul 2010 12:36:54 -0000 On Sat, 10 Jul 2010 11:43:13 +0000 b. f. articulated: > 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). > > >> man setenv is useless. > > > >The manual entry of setenv can be found in "man csh". :-) > > 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. > > >> The question is how do I set a environment variable using the default > >> freebsd shell? > > > >You mean: FreeBSD's default scripting shell. :-) > > He could mean the default interactive shell, which could be something > other than sh(1), despite the title of his message. As an alternative > to "export" or "setenv", he could instead use env(1) in some > instances. Perhaps, just posting the output of: "env | grep -i SHELL" might prove useful. -- Jerry ✌ FreeBSD.user@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ Man will never fly. Space travel is merely a dream. All aspirin is alike.