[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hurd does NOT need /hurd



On Mon, May 20, 2002 at 10:22:43AM -0700, Thomas Bushnell, BSG wrote:
> > Doesn't it make sense for it to be in PATH *when* this special
> > environment exists?  In other words, couldn't settrans add /hurd (or
> > TRANSPATH, or whatever) to its (and its children's) path?
> 
> The word "environment" is misleading.  They are not started up in any
> "environment", rather, a special means of executing them is used.
> Ordinary "exec" is not sufficient to get them running properly; they
> have to do some extra Hurd-specific things to hook themselves into the
> filesystem first.  

What of Marcus's example:

> settrans is not limited to starting translators directly.  You can also
> wrap them into other commands, like this:
> 
> $ settrans -ac ~/ftp /bin/sh -c "LD_LIBRARY_PATH=/lib/debug /hurd/ftpfs ftp.debian.org:/"

Here, it looks as if /hurd/ftpfs is being executed with exec (by /bin/sh,
with the special "environment" already existing around it due to settrans),
so if settrans had added /hurd to PATH for the subshell,

$ settrans -ac ~/ftp /bin/sh -c "LD_LIBRARY_PATH=/lib/debug ftpfs ftp.debian.org:/"

would work.

-- 
Glenn Maynard


-- 
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: