export command not found?

Matthew Seaman m.seaman at infracaninophile.co.uk
Sat Feb 10 12:36:17 UTC 2007

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:

   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



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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070210/9165a945/signature.pgp

More information about the freebsd-questions mailing list