|
|
IBM : developerWorks : Linux : Education - Tutorials | |
Sometimes bash sources your ~/.bashrc, even though it isn't really interactive, such as when using commands like rsh and scp. This is important to keep in mind because printing out text, like we did with the fortune command earlier, can really mess up these non-interactive bash sessions. It's a good idea to use the PS1 variable to detect if the current shell is truly interactive before printing text from a startup file:
|
|