On Mon, Aug 11, 2008 at 1:54 PM, macintoshzoom
<[EMAIL PROTECTED]> wrote:
> I have a dude in this command, at least for people running this from KDE
> konsole or konqueror:
>
> At http://www.openbsd.org/faq/faq5.html ,
> section 5.3.5 - Building the userland :
> ...
> Make sure all the appropriate directories are created.
> # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs
> ...
>
> But it seems to me that the proper command for this (from KDE) should be:
>
> # cd /usr/src/etc && export env DESTDIR=/ make distrib-dirs
>
>
> as "export env", not "env" is the proper command for KDE consoles,
> e.g. when
> $ echo $SHELL
> /bin/ksh
> $
>
> Can any one give me some light about this?
>

'env' is a command that takes a list of environment variables to
temporarily define and then runs the command that you give it in that
new environment.
'export' is a command that takes a list of strings, treats them as
environment variables, and pushes those variables out to the world
outside of your current shell (that's why you have to use export in
.profile, because .profile gets run in its own subshell, just like
every script).

"export env DESTDIR=/ make distrib-dirs" doesn't mean anything. Well,
rather, it does not mean what you think it does. Try this:
$ export env DESTDIR=/ make distrib-dirs
$ set #shows the current environment variables

Anyway, why would using KDE have any impact on how commands in a shell work?

I hope that helps clear up your understanding?
-Nick
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to