From owner-freebsd-questions@FreeBSD.ORG Mon Feb 16 11:25:29 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDC2E16A4CE for ; Mon, 16 Feb 2004 11:25:29 -0800 (PST) Received: from therub.org (pantheon-ws-13.direct.hickorytech.net [216.114.200.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8112543D2D for ; Mon, 16 Feb 2004 11:25:29 -0800 (PST) (envelope-from drue@therub.org) Received: from drue by therub.org with local (Exim 3.35 #1 (Debian)) id 1AspPQ-0002TD-00; Mon, 16 Feb 2004 14:32:04 -0600 Date: Mon, 16 Feb 2004 14:32:03 -0600 To: jan.muenther@nruns.com Message-ID: <20040216203203.GB6888@therub.org> References: <9BC86C67C3AF7646B9C5382020457A940136C5@VIP10-WIN2K> <200402161708.i1GH8Qw19410@clunix.cl.msu.edu> <20040216172752.GA2407@ergo.nruns.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040216172752.GA2407@ergo.nruns.com> User-Agent: Mutt/1.3.28i From: Dan Rue cc: Jerry McAllister cc: Eric Toll cc: freebsd-questions@freebsd.org Subject: Re: Scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2004 19:25:30 -0000 On Mon, Feb 16, 2004 at 06:27:52PM +0100, jan.muenther@nruns.com wrote: > I just wanted to say quickly that I'd recommend *not* ever taking '.' into > your path - when someone wants you to execute something and places it into a > directory where both have write rights and names it like the binary you're > supposed to call, it's going to get executed first. There's a lot of things that you shouldn't do that people do every day. To minimize risk, if you insist on having a '.' in your path, the most important thing is to put it at the _end_ of your path. This way, when you type a command, it will hopefully find the real command first. If it's at the beginning of your path, and you're on a multi-user system, you're just asking for trouble. dan