[mdlug] Difference between ; and &&

gib at juno.com gib at juno.com
Wed May 9 10:20:41 EDT 2012


I see a couple of responses to your question already. But I want to add a bit.  The construct "&&" is also used in other languages besides the shell.

Here is a link to some related information:
http://ss64.com/bash/syntax-execute.html


---------- Original Message ----------
From: Mat Enders <mat.enders at gmail.com>
To: "MDLUG's Main discussion list" <mdlug at mdlug.org>
Subject: [mdlug] Difference between ; and &&
Date: Wed, 9 May 2012 08:12:13 -0400

Hello all,

When stringing commands together at the command line I always use the
semicolon ;  I however see && used frequently and was wondering what
the difference was.

For example what is the difference between these commands:

apt-get update;apt-get dist-upgrade
and
apt-get update && apt-get dist-upgrade

-- 
Mathew E. Enders

"Where once Samba and Apache sold Linux to the world they are now just
part of the plumbing.  But that's OK, plumbers make good money."
--Jeremy Allison
_______________________________________________
mdlug mailing list
mdlug at mdlug.org
http://mdlug.org/mailman/listinfo/mdlug

____________________________________________________________
53 Year Old Mom Looks 33
The Stunning Results of Her Wrinkle Trick Has Botox Doctors Worried
http://thirdpartyoffers.juno.com/TGL3131/4faa7d70d9dd5fc881bst03vuc



More information about the mdlug mailing list