Forget about my earlier, wide off target post about this. Can't cancel e-mail,
sorry...
"d" == domivogt <users> writes:
d> 1) Unlike most (probably all) other shells, bash *deletes* the contents
d> of PS1 if it is non-interactive (i.e. if you run a script with bash).
d> This is documented behaviour however.
Well, of course this one wins the prize. This rang a bell (a cathedral-sized
one). Not sure about the "documented" bit, however. But the recommended bash
trick for detecting a non-interactive shell is '[ -z "$PS1" ]'!! It does leave
one suspicious...
Redhat even distributes an /etc/bashrc containing the following pearl:
"...
# For some unknown reason bash refuses to inherit
# PS1 in some circumstances that I can't figure out.
# Putting PS1 here ensures that it gets loaded every time.
PS1="[\u_at_\h \W]\\$ "
..."
Argh.
Sorry about that.
Cumprimentos,
--
Jose' Pereira Tel. +351.1.841 9340
DEEC - Dep. of Electrical and Computer Engineering Fax. +351.1.841 7499
Instituto Superior Tecnico - Technical University of Lisboa
Av. Rovisco Pais - 1049-001 Lisboa - Portugal
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Nov 02 1998 - 19:30:52 GMT