Subject: Re: Can't setenv more than one path
To: None <mason@primenet.com.au>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: port-i386
Date: 02/12/2005 10:58:47
On Sat, 2005-02-12 at 05:51 +0000, Geoff Wing wrote:
> der Mouse <mouse@Rodents.Montreal.QC.CA> typed:
> :> Whenever setenv receives more than one path it says
> :> /path/to/packages:Permission denied, where /path/to/packages would be
> :> the last in the list.
> :> For example, "setenv PKG_PATH
> :> /mnt/flash/bin;/mnt/cdrom/packages/i386/All" it gives "Permission
> :> denied" for the last path, which in this case would be
> :> "/mnt/cdrom/.../All".
> :> Is there something I am doing wrong?
> : Yes.
> : ; is a command separator for csh and derivatives (which I infer you are
> : using from your mention of setenv).  You need to quote it if you want
> : it to become part of setenv's second argument.
> 
> The other part of the answer is that such environmental variables tend to be
> colon-separated and not semicolon-separated.  So
>     setenv PKG_PATH /mnt/flash/bin:/mnt/cdrom/packages/i386/All
> would most likely be what you want.

Except that it's not.

PKG_PATH    The value of the PKG_PATH is used if a given package can't
be
            found, it's usually set to /usr/pkgsrc/packages/All.  The
            environment variable should be a series of entries separated
            by semicolons.  Each entry consists of a directory name or
            URL.  The current directory may be indicated implicitly by
an
            empty directory name, or explicitly by a single period.  FTP
            URLs may not end with a slash.

-- 
Julio M. Merino Vidal <jmmv84@gmail.com>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/