In /usr/bin/aptitude-run-state-bundle line 48:
if ( [ $UNPACK_ONLY = 0 ] && [ "$#" -lt 1 ] ) ||
   ^-- SC2235: Use { ..; } instead of (..) to avoid subshell overhead.


In /usr/bin/aptitude-run-state-bundle line 49:
   ( [ $UNPACK_ONLY = 1 ] && [ "$#" -ne 1 ] ) ||
   ^-- SC2235: Use { ..; } instead of (..) to avoid subshell overhead.


In /usr/bin/aptitude-run-state-bundle line 89:
    tempdir=$(mktemp -p ${TMPDIR:-/tmp} -d aptitudebug.XXXXXXXXX) || exit 1
                        ^-------------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    tempdir=$(mktemp -p "${TMPDIR:-/tmp}" -d aptitudebug.XXXXXXXXX) || exit 1

For more information:
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
  https://www.shellcheck.net/wiki/SC2235 -- Use { ..; } instead of (..) to av...