tag:blogger.com,1999:blog-4949964667779944881.post6295334337371060080..comments2024-03-28T22:45:54.284-07:00Comments on One Fork: Terse vs Verbose conditional execution in BashRodhttp://www.blogger.com/profile/01080301889766047685noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-4949964667779944881.post-59403381085875724052012-11-06T11:48:15.150-08:002012-11-06T11:48:15.150-08:00{echo "Please specify ebuild file and unpack,...{echo "Please specify ebuild file and unpack, compile or all"; exit 1;} <br /><br />This is exactly what I was looking for, thank you. However, I should note a space is required on the inside of the braces.Anonymoushttps://www.blogger.com/profile/10324041225685608682noreply@blogger.comtag:blogger.com,1999:blog-4949964667779944881.post-21965945645937441782012-09-13T03:13:37.339-07:002012-09-13T03:13:37.339-07:00"That is for A || B we only execute B if A is..."That is for A || B we only execute B if A is true, if A is false the result is already known to be false and we don't have to run B at all."<br /><br />Ah, no. If A is false, B must be evaluated, because false || true is true.<br /><br />"That is for A && B we only execute B if A is true, if A is false the result is already known to be false and we don't have to run B at all."<br /><br />is correct.<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4949964667779944881.post-11238203928271190292011-02-14T05:07:00.842-08:002011-02-14T05:07:00.842-08:00Given that we need to write bash script in vim or ...Given that we need to write bash script in vim or vi editor I would rather go for readability and to me verbose is the choice. but yes you made some point for terse version as well.<br /><br />Javin<br /><a href="http://javarevisited.blogspot.com/2010/10/basic-networking-commands-in-linuxunix.html" rel="nofollow"> basic networking command in unix </a>Anonymousnoreply@blogger.com