Someone, quite probably Peter Leftwich, once wrote:
>On Thu, 25 Jul 2002, Roman Neuhauser wrote:
>[snip]
>>     % cd /usr/ports && make update
>>     % cd ./audio/agbrowser && make install clean
>
>What does the "&&" do?  Is it similar to the usage of ";" but instead
>issues the command after the "&&" at the result of the "cd?"  That is, does
>the double ampersand cause your shell (which is..?) to not execute the make
>command in the current working dir (cwd)?

&& means the second command will only run if the first was successful
whereas ; will run the second command no matter what.  You can also use
|| which will only run the second command if the first fails.

Kevin
-- 
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to