[Aptitude-devel] Bug#887639: $? still 0 despite error

積丹尼 Dan Jacobson jidanni at jidanni.org
Thu Jan 18 15:57:10 UTC 2018


Package: aptitude
Version: 0.8.10-6

Perl has
  use warnings FATAL => 'all';
to halt and return non-zero to the shell upon anything unexpected.

Alas, aptitude gives no way to halt a shell script upon its errors at
least like the one in #887624.

Some people would like a chance to fix ANY error and not have the script
trundle on.

Sure some errors are not as important as others but they still are
things the programmer cares about and would like some way to stop and
fix them... just like the red light is beeping on your car dashboard. Some
people would like to pull over now... before a wheel comes off.

>>>>> "AB" == Axel Beckert <abe at debian.org> writes:
AB> This is a completely different issue. Please don't put more than one
AB> issue into one bug report.

OK I'll make a fresh one

AB> (And it's a well-known issue I'm quite sure that there exists a
AB> _wishlist_ bug report for years. There was the 0.6.9 branch which had
AB> this fixed, but it opened tons of other regressions and was hence was
AB> dropped as a dead end.)

I'll make a fresh one anyway.



More information about the Aptitude-devel mailing list