My fresh Ubuntu install says I need some updates. Okay, but there are some problems.
First, it tells me to close the snap-store to update it, but the snap-store is not open.
1/
@peterdrake Hmm, all I can think of is to use the good old command line:
sudo apt update && sudo apt upgrade && sudo snap refresh
@JensHannemann That happily ran, but the snap store and the notifications under the clock both think I still have updates.
I assume the &&s in your command are short-circuited so the later parts run only if the first parts ... succeed? My only confusion here is that I would expect a process to return 0 (false) if it succeeded.
@JensHannemann That's why I'm confused. If you run
foo && bar
and foo returns 0 (because it succeeded), won't the shell essentially say, "Welp, the first part of this expression is false, so no point in running the second part!"?
@peterdrake No, because the shell does not think of that as an expression, but rather a conditional sequence of commands. You can request evaluation of an expression explicitly. Bash knows the `eval` command for that, but there are different ways for different shells.