Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jun 2008 03:19:43 +0100
From:      RW <fbsd06@mlists.homeunix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: how to view environment variables
Message-ID:  <20080615031943.3a8842f0@gumby.homeunix.com.>
In-Reply-To: <48546AC3.5010506@onetel.com>
References:  <485453CE.3040908@onetel.com> <20080615014316.0723f0da@gumby.homeunix.com.> <48546AC3.5010506@onetel.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 15 Jun 2008 02:05:07 +0100
Chris Whitehouse <cwhiteh@onetel.com> wrote:

> RW wrote:
> > On Sun, 15 Jun 2008 00:27:10 +0100
> > Chris Whitehouse <cwhiteh@onetel.com> wrote:
> > 
> >> Hello,
> >>
> >> sysutils/fusefs-ntfs/files/README.FreeBSD refers to various
> >> environment variables, eg UBLIO_BLOCKSIZE and others. How do I find
> >> out what they are set to? set and printenv don't find them. I'm
> >> using standard csh and FreeBSD 7.0-STABLE, fuse.ko is loaded and
> >> ntfs-3g works except it seems very slow.
> > 
> > If you didn't set them, they probably aren't set. You'll need to
> > consult the fusefs-ntfs documentation (or source) to find the
> > default value.
> 
> I think this explains part of my confusion. If the variables are not
> set ntfs-3g assumes some defaults (in README.FreeBSD) but doesn't set
> them as environment variables. I thought ntfs-3g would actually set
> them. I still don't know how to view them when I have explicitly set
> them, as per previous reply to Robert Huff.
> 
> eco# env UBLIO_BLOCKSIZE=65536 ntfs-3g /dev/ad0s1 /ad0s1
> eco# setenv |grep UBLIO
> eco#

If you set them separately in the shell the new process will inherit
them - env only sets the environment in the new process. This wont buy
you anything though for the reason you mention, and because parent
processes don't pick-up changes to the environment made by
child-processes anyway.



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