At 11:33 pm, Sunday, October 21 2001, Angus Lees mumbled:
> several suggestions for your .bashrc:
>
> only echo if bash is in "interactive" mode (don't know how you check
> that off the top of my head. in tcsh you see if $prompt is defined)
>
The Debian .bashrc uses 'if [ "$PS1" ]; then'
(In my mind, 'if [ ! -z "$PS1" ]; then' sounds like a better plan.)
> only echo if stdout is a tty (test -t 1)
>
Nice plan.
> echo to stderr (echo foo >&2) instead
>
> don't echo anything
>
Best method.
--
Steve
BOFH excuse #274: It was OK before you touched it.
PGP signature