From owner-freebsd-current Thu Sep 14 15:32:53 2000 Delivered-To: freebsd-current@freebsd.org Received: from phoenix.volant.org (phoenix.volant.org [205.179.79.193]) by hub.freebsd.org (Postfix) with ESMTP id 1367637B422; Thu, 14 Sep 2000 15:32:49 -0700 (PDT) Received: from asimov.phoenix.volant.org ([205.179.79.65]) by phoenix.volant.org with esmtp (Exim 1.92 #8) id 13ZhYm-0001Qp-00; Thu, 14 Sep 2000 15:32:48 -0700 Received: from localhost (localhost [127.0.0.1]) by asimov.phoenix.volant.org (8.9.3+Sun/8.9.3) with SMTP id PAA19703; Thu, 14 Sep 2000 15:32:47 -0700 (PDT) From: patl@Phoenix.Volant.ORG Date: Thu, 14 Sep 2000 15:32:47 -0700 (PDT) Reply-To: patl@Phoenix.Volant.ORG Subject: Re: "!.*" [ was: Fdescfs updates--coming to a devfs near you! ] To: Poul-Henning Kamp Cc: hackers@FreeBSD.ORG, current@FreeBSD.ORG In-Reply-To: <56645.968935026@critter> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 14-Sep-00 at 05:37, Poul-Henning Kamp (phk@critter.freebsd.dk) wrote: > >You think adding a hack to every program to support "-" to mean > >stdout/stdin is better? > > The majority of these programs could be handled by adding knowledge > of "-" as a magic filename to fopen(3). > > At the same time I would really love if we implemented "|.*" to mean > "do an popen(3)" instead. Isn't that potentially a huge security hole in every program that gets a filename from an external source? > But of course, this is bikeshed material... > > >> If anything I would propose we ditch it... > > > >And break loads of scripts at the same time? > > I would argue that the programs and the scripts that call them are > already broken, but hey... And I would argue that the fdescfs is cleaner than the '-' hack. (Which, by the way, should not be considered a filename hack so much as a command-line-parameter hack; since it was invented before there was a way to say 'use stdin/stdout' on the command-line... You could think of '/dev/stdin' as "'-' version 2") -Pat To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message