title: Bash/sh - difference between && and ;
body: <p>I normally use <code>;</code> to combine more than one command in a line, but some people prefer <code>&amp;&amp;</code>. Is there any difference? For example, <code>cd ~; cd -</code> and <code>cd ~ &amp;&amp; cd -</code> seems to make the same thing. What version is more portable, e.g. will be supported by a bash-subset like Android's shell or so?</p>