Date: Mon, 27 Jan 1997 23:51:10 -0500 (EST) From: "Eric A. Griff" <eagriff@global2000.net> To: Chuck Robey <chuckr@Glue.umd.edu> Cc: current@freebsd.org Subject: Re: Can't get `.' off of root's path Message-ID: <Pine.BSF.3.95.970127234742.5690A-100000@global2000.net> In-Reply-To: <Pine.OSF.3.95q.970127205954.2115D-100000@uplink.eng.umd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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!
> ----------------------------+-----------------------------------------------
>
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970127234742.5690A-100000>
