From owner-freebsd-questions Tue Jan 9 20:01:20 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA03588 for questions-outgoing; Tue, 9 Jan 1996 20:01:20 -0800 (PST) Received: from gdi.uoregon.edu (riley-net170-164.uoregon.edu [128.223.170.164]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id UAA03578 for ; Tue, 9 Jan 1996 20:01:16 -0800 (PST) Received: (from dwhite@localhost) by gdi.uoregon.edu (8.6.12/8.6.12) id TAA04734; Tue, 9 Jan 1996 19:41:20 -0800 Date: Tue, 9 Jan 1996 19:41:20 -0800 (PST) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: David Brockus cc: FreeBSD questions Subject: Re: Paths in FreeBSD In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Tue, 9 Jan 1996, David Brockus wrote: > I am running FreeBSD 2.0.5R. I have a problem with the path settings. > I have a prolem with directories that are not in the path. I can not > execute a files in those directories by just typing thier name. I must > type > > ./ > > to indicate the current directory and then type the file name. This is standard Unix procedure. After running DOS a while you have to get into the habit :-) > Adding "." to the path in the .cshrc file seems to fix this but I get > this error message > > Warning: exported path contains relative components. > > I was wondering what the correct solutions is? Thanks in advance It's to warn you to watch out what you're running. It's pretty easy to fool someone into running a destructive script this way (ie, if you type ``pine'' just after you login, someone could put a ``pine'' script in your home dir that does ``rm *'' instead). If you have binaries/scripts you run a lot make a directory called ``bin'' off your home directory and put them in there; ~/bin is in the path by default. Doug White | University of Oregon Internet: dwhite@gladstone.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major