Subject: Re: Can't setenv more than one path
To: None <port-i386@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: port-i386
Date: 02/12/2005 05:51:33
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.

Regards,
-- 
Geoff Wing : <gcw@pobox.com>