Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Feb 2007 13:52:54 +0100
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        freebsd-questions@freebsd.org, Roger Olofsson <raggen@passagen.se>
Subject:   Re: export command not found?
Message-ID:  <20070210125254.GA804@owl.midgard.homeip.net>
In-Reply-To: <45CDBC2C.6050005@infracaninophile.co.uk>
References:  <45CDB934.6080802@passagen.se> <45CDBC2C.6050005@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 10, 2007 at 12:35:56PM +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

Not true. FreeBSD's /bin/sh supports the 'export FOO=bar' syntax.


> 
> 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
> 
> 
> -- 
> Dr Matthew J Seaman MA, D.Phil.                       7 Priory Courtyard
>                                                       Flat 3
> PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
>                                                       Kent, CT11 9PW
> 



-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070210125254.GA804>