export command not found?
youshi10 at u.washington.edu
Sat Feb 10 20:20:21 UTC 2007
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:
> 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
Sorry, but that's incorrect. One line exports do work in either bash or sh:
[gcooper at sprsd ~]$ export FOO=bar; echo $FOO
[gcooper at sprsd ~]$ sh
$ export FOO=bar; echo $FOO
He's probably using (t)csh.
More information about the freebsd-questions