export command not found?

Erik Trulsson ertr1013 at student.uu.se
Sat Feb 10 12:53:00 UTC 2007


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 at student.uu.se


More information about the freebsd-questions mailing list