Re: Design for setting video modes, ownership of sysfs attributes

From: Pascal Schmidt
Date: Sun Sep 19 2004 - 14:09:56 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/