4 ms·
> No, but the thing is about the shell is you can automate it, so random stuff could break shell scripts. In this particular case, the user used the "apt" comm
by Denvercoder9 4y ago
> No, but the thing is about the shell is you can automate it, so random stuff could break shell scripts.
In this particular case, the user used the "apt" command, which is meant to be used by humans and not by scripts. It's explicitly documented that its output is unstable, and prints out a warning when stdout is not an interactive tty. For scripting, use of the apt-get/apt-cache/etc tools is recommended.
- nirimda 4y agoFwiw, it's included in the output of `apt-get dist-upgrade`, so using `apt-get` is not going to immunise you from unnecessarily patching scripts that break.