From owner-freebsd-current Mon Jan 27 20:53:11 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA17427 for current-outgoing; Mon, 27 Jan 1997 20:53:11 -0800 (PST) Received: from global2000.net (eagriff@ut-dialup-1.global2000.net [204.249.217.162]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA17422 for ; Mon, 27 Jan 1997 20:53:05 -0800 (PST) Received: from localhost (eagriff@localhost) by global2000.net (8.8.4/8.7.3) with SMTP id XAA07936; Mon, 27 Jan 1997 23:51:14 -0500 (EST) Date: Mon, 27 Jan 1997 23:51:10 -0500 (EST) From: "Eric A. Griff" To: Chuck Robey cc: current@freebsd.org Subject: Re: Can't get `.' off of root's path In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Do your echo $PATH, as well as $path before you su root. You will probly find . , : at the end. or :: in there somewhere. I have the same thing. It seams that su root does get it out of the path, as I still need ./ to run nonpath stuff. Thank you very much. -Eric --------------------------------------------------------------------------- | Eric A. Griff | Griff Enterprises | Owner | RD#1 Box 372 | | Oneida, NY 13421 | eagriff@global2000.net | USA | Running: FreeBSD 3.0-CURRENT FreeBSD | | The best OS this side of anywhere! | --------------------------------------------------------------------------- On Mon, 27 Jan 1997, Chuck Robey wrote: > On Mon, 27 Jan 1997, Randy DuCharme wrote: > > > David Greenman wrote: > > > > > > >> What's even worse... if I do an... > > > >> > > > >> echo $PATH > > > >> > > > >> dot isn't there. > > > > > > > >No idea about that. Not even at the very end? > > > > > > Make sure you don't have a ":" (a null path component) at the end, either, > > > since this is equivalent to the current directory ("."). Also make sure that > > > there are no relative path specifications (no leading "/" or contains a ".."). > > > > I've taken the path(s) completely out of .login, .cshrc, /etc/csh.login, > > /etc/csh.cshrc, and, .profile & /etc/profile (just in case I've missed > > some change that made csh read .profile) and it's still there. Only on > > my current machines, not on my 2.1.5, 2.1.6, or 2.2SNAP machines. > > > > Format and start over ?? :) > > I have a new machine that I booted from a 2.2 snap, then moved to current. > Root's path (echo $PATH) doesn't include ".", but I get that warning > anyhow. Functionally speaking, root's path really doesn't include ".", it > can't see executable in the current dir (except via ./), I doublechecked > just in case csh was playing games with me. The warning seems to be > bogus. > > I doublechecked everything, I haven't made a mistake on this. > > ----------------------------+----------------------------------------------- > Chuck Robey | Interests include any kind of voice or data > chuckr@eng.umd.edu | communications topic, C programming, and Unix. > 9120 Edmonston Ct #302 | > Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD > (301) 220-2114 | version 3.0 current -- and great FUN! > ----------------------------+----------------------------------------------- > >