Art Alexion on 22 Jun 2009 11:26:49 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] recent aptitude changes?


On Monday 22 June 2009 11:08:40 am Isaac Bennetch wrote:
> IIRC, stringing
> commands together with && only executes the second command if the
> first command exits successfully. || (two pipes) will execute the
> second command only if the first command errors (well, returns a
> non-zero status).
>
> Try following:
> false && echo "some text here"
> true && echo "some text here"
> false ||  echo "some text here"
> true ||  echo "some text here"
>
> If you want to run safe-update regardless of the status of the update, try:
> sudo aptitude update; sudo aptitude safe-upgrade


I didn't know this before.  Thanks.  I never knew about ":"  either.


Attachment: signature.asc
Description: This is a digitally signed message part.

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug