From owner-freebsd-questions@FreeBSD.ORG Sat Feb 10 20:20:21 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 76CD016A400 for ; Sat, 10 Feb 2007 20:20:21 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id 56E9313C4A7 for ; Sat, 10 Feb 2007 20:20:21 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l1AKKKsj025955 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 10 Feb 2007 12:20:21 -0800 X-Auth-Received: from [192.168.10.41] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l1AKKKOb013576 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 10 Feb 2007 12:20:20 -0800 Message-ID: <45CE28FB.2080404@u.washington.edu> Date: Sat, 10 Feb 2007 12:20:11 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.9 (X11/20070122) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <45CDB934.6080802@passagen.se> <45CDBC2C.6050005@infracaninophile.co.uk> In-Reply-To: <45CDBC2C.6050005@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.2.10.120933 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: export command not found? 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 Feb 2007 20:20:21 -0000 Matthew Seaman wrote: > Roger Olofsson wrote: >> Dear Mailing List, >> >> 6.2-STABLE FreeBSD just made world. >> >> # export VARIABLE value >> export: Command not found. >> >> >> What happened to export? >> >> Grateful for any answer! > > /bin/sh is not bash on FreeBSD. IF you're using /bin/sh, then you > need to assign and export values as separate operations: > > FOO=bar > export FOO > > Also, root's shell is not /bin/sh or anything of that ilk by default. > It is /bin/csh aka /bin/tcsh, and for that the syntax is: > > setenv FOO bar > > Cheers, > > Matthew Sorry, but that's incorrect. One line exports do work in either bash or sh: [gcooper@sprsd ~]$ export FOO=bar; echo $FOO bar [gcooper@sprsd ~]$ sh $ export FOO=bar; echo $FOO bar He's probably using (t)csh. -Garrett