Allen BrownThu Jan 20 14:36:18 PST 2005
I think that did it. I also reordered some things between these files. Thank you for the hints. -- Allen Brown work: Agilent Technologies non-work: http://www.peak.org/~abrown/ allen_brown at agilent.com abrown at peak.org A dollar saved is a quarter earned. ---John Ciardi Allen Brown wrote: > I don't call stty or tputs from .bashrc or /etc/profile. > I call stty once in .bash_profile, and tputs not at all. > It is done this way: > [[ -z ${VUE-} && -z ${DT-} && "${TERM}" != "dumb" ]] && stty kill "^U > > The only one of these files that has the right pattern of > stty+tputs+tputs is /etc/bashrc. It is done this way: > if [ -n "${PS1-}" -a -n "${TERM-}" ]; then > All terminal related stuff such as stty and tputs > fi > > /etc/bashrc loads /etc/profile if that hasn't happened yet. > So moving this to /etc/profile won't solve the problem. > I don't want to give up profile loading because lots of things > will be very stupid without a profile. > What I need to do is to make the conditionals around the > terminal related stuff to work. > I will try using a conditional like this: > > if [ -n "${PS1-}" -a -n "${TERM-}" -a "${TERM-}" != "dumb" ]; then > All terminal related stuff such as stty and tputs > fi