3 ms·
In the example he gives, like many I have seen on the Internet, it tests for .bashrc and if it exists, sources it. But if you didn't test it and for some reason
by RexRollman 12y ago
In the example he gives, like many I have seen on the Internet, it tests for .bashrc and if it exists, sources it. But if you didn't test it and for some reason .bashrc didn't exist, what would happen? And if nothing bad would happen, why test for it?
- akandiah 12y agoIt's just for cleanliness. The script would error out with something along the lines of "No such file or directory".
- RexRollman 12y agoThanks. I've never tried it out and was curious if anyone knew.