delorie.com/archives/browse.cgi | search |
On Tuesday 11 Sep 01, Corinna Vinschen writes: > ... If your login shell is bash and bash has been started by > rshd/sshd, it executes ~/.bashrc. So the rule is, no output in > ~/.bashrc. > > And, IIRC, the same rule applies for tcsh and ~/.cshrc. Just to be precise and complete... That's almost correct. Your *are* allowed to generate output in .bashrc (and in .cshrc for tcsh) for *interactive* shells only. The usual way to test is to check for the existence of a prompt. ($PS1 in bash, $prompt in tcsh.) If no prompt is defined, you must not generate *any* output. Hope this helps. Regards, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |