Re: something funny about tty's on 2.6.4-rc1-mm1

From: James H. Cloos Jr.
Date: Tue Mar 02 2004 - 12:49:58 EST


>>>>> "Richard" == Richard B Johnson <root@xxxxxxxxxxxxxxxxxx> writes:

Richard> I think /dev/tty, used in the context of any process, always
Richard> refers to the current processes terminal. You should not have
Richard> to "hard-code" a particular terminal.

No, I obviously was ambiguous. I use:

export HISTFILE=~/.bash_history_${USER}_$(tty|sed s_^/dev/__|tr / _)

in my ~/.bashrc to ensure that each term has a unique and repeatable
HISTFILE. I do not see any alternative tuple that is unique and
repeatable.

This change makes that idiom useless, with no alternative available.

On a multi-user server the change is clearly the right thing to do,
but on a workstation, laptop or handheld, where few ptys are typically
allocated, the case isn't so clear.

-JimC



-
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/