TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Bash_profile vs. .bashrc

24 点作者 akandiah将近 11 年前

3 条评论

blippe将近 11 年前
I would recommend reading[0] instead.<p>[0] <a href="http://www.thegeekstuff.com/2008/10/execution-sequence-for-bash_profile-bashrc-bash_login-profile-and-bash_logout/" rel="nofollow">http:&#x2F;&#x2F;www.thegeekstuff.com&#x2F;2008&#x2F;10&#x2F;execution-sequence-for-b...</a>
评论 #8093720 未加载
Canada将近 11 年前
In my opinion the only thing .bash_profile should do is source .bashrc, that way the environment is consistent regardless of invocation.
RexRollman将近 11 年前
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&#x27;t test it and for some reason .bashrc didn&#x27;t exist, what would happen? And if nothing bad would happen, why test for it?
评论 #8093620 未加载