Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262329AbUISTJG (ORCPT ); Sun, 19 Sep 2004 15:09:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262406AbUISTJG (ORCPT ); Sun, 19 Sep 2004 15:09:06 -0400 Received: from mail1.ewetel.de ([212.6.122.12]:18860 "EHLO mail1.ewetel.de") by vger.kernel.org with ESMTP id S262329AbUISTJC (ORCPT ); Sun, 19 Sep 2004 15:09:02 -0400 Date: Sun, 19 Sep 2004 21:08:50 +0200 (CEST) From: Pascal Schmidt To: "P. Benie" cc: linux-kernel@vger.kernel.org Subject: Re: Design for setting video modes, ownership of sysfs attributes In-Reply-To: Message-ID: References: <2FYdH-10h-5@gated-at.bofh.it> <2G6Et-6D7-31@gated-at.bofh.it> <2G6Et-6D7-31@gated-at.bofh.it> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-CheckCompat: OK Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 863 Lines: 23 On Sun, 19 Sep 2004, P. Benie wrote: > If you're going to subvert an fd, use stdin, not stdout. > stdin is less valuable most commands use argv rather than stdin, and it > allows you to retreive the output of a command using the shell `backtick` > operators. The point is, you need to make a choice if you want to infer the tty from an fd. You can't assume stdin and stdout point to the same console. And if we talk about video mode settings, why would I want to use the fd that the command gets keyboard input from? The shell backtick obviously uses stdout of the command inside the backticks. ;) -- Ciao, Pascal - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/