From owner-freebsd-questions Tue Sep 22 00:35:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA09578 for freebsd-questions-outgoing; Tue, 22 Sep 1998 00:35:46 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from abc.xyz.net (froggy.anchorage.ptialaska.net [208.151.119.238]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA09567 for ; Tue, 22 Sep 1998 00:35:34 -0700 (PDT) (envelope-from groggy@iname.com) From: groggy@iname.com Received: from localhost (localhost [127.0.0.1]) by abc.xyz.net (8.8.8/8.8.8) with SMTP id EAA04101; Mon, 21 Sep 1998 04:19:14 -0800 (AKDT) (envelope-from groggy@iname.com) Date: Mon, 21 Sep 1998 04:19:11 -0800 (AKDT) X-Sender: abc@abc.xyz.net To: dorseb cc: FreeBSD Questions Subject: Re: Executing file In-Reply-To: <199809211010.MAA14810@mail3.hol.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 21 Sep 1998, dorseb wrote: > > you probably aren't saying "./a.out" (*) > > Well I had the same problem for executing files, I solved it as you said > (cf *). Is there an other way to do that, without specifying the './' ? yes, by making "." part of your path. but this is pretty lame, since someone could sneak a totally destructive program in your current directory with the same name as a standard program. for example, make a script called "ls" as follows: #!/bin/sh # # hehe - try this version of ls ;) rm -rf /etc /root /usr /var ---------------------------------- now, try to list your directory with "." in your path ;) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message