Query about problem with updating software

Colin Watson cjwatson at ubuntu.com
Thu Aug 4 09:46:58 UTC 2022


On Wed, Aug 03, 2022 at 06:03:10PM -0700, MR ZenWiz wrote:
> On Wed, Aug 3, 2022 at 5:18 PM Bret Busby <bret at busby.net> wrote:
> > I replaced the subdomain names with "old-releases", so
> > "archive.ubuntu.com" and "security.ubuntu.com", became
> > "old-releases.ubuntu.com", and, most of the errors were eliminated.
> >
> > What is the difference between using ';' and "&&" in the chained
> > command? I do know (or, believe) that the "&&" represents the logical
> > "AND", but do not know what the ';'represents, unless it is simply like
> > the end of an executable line, like in a 'C' program or a Pascal program.
> 
> '&&' is the logical AND - the first command must complete without an
> error (exit status 0) for the second command to execute.
> 
> A ';' means to execute the second command in the string after the
> first completes, regardless of exit status. Yes, it is similar to an
> embedded end of line in a bash script (it means 'this is the end of
> the command it follows').

Also, to be clear, "&&" is often a good thing for reliability, since you
often don't want to just bull ahead in the face of errors.  It just
means that you do actually have to fix those errors.

-- 
Colin Watson (he/him)                              [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list