Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269250AbUISPAN (ORCPT ); Sun, 19 Sep 2004 11:00:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269248AbUISPAN (ORCPT ); Sun, 19 Sep 2004 11:00:13 -0400 Received: from spanner.eng.cam.ac.uk ([129.169.8.9]:54775 "EHLO spanner.eng.cam.ac.uk") by vger.kernel.org with ESMTP id S269250AbUISPAJ (ORCPT ); Sun, 19 Sep 2004 11:00:09 -0400 Date: Sun, 19 Sep 2004 16:00:04 +0100 (BST) From: "P. Benie" To: Pascal Schmidt 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 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 926 Lines: 23 On Sun, 19 Sep 2004, Pascal Schmidt wrote: > On Sun, 19 Sep 2004 12:00:21 +0200, you wrote in linux.kernel: > > The FDs 0, 1 and posibly 2 will be the console. > > *The* console? They can all be connected to different console > devices (think redirection). I'd think for video mode questions, > you'd look at stdout... Early versions of stty made that mistake - to find out what settings your printers had, you ended up printing the output of stty on paper. 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. Peter - 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/