$ trap
trap -- 'show_error' ERR
$ type show_error
show_error is a function
show_error ()
{
printf "\e[1mExit $?\e[m\n" 1>&2
}
$
On Sat, Oct 31, 2015 at 12:00 AM, Andreas Schwab <[email protected]>
wrote:
> Keith Thompson <[email protected]> writes:
>
> > For a while, I had two running login shells, one that had the problem
> > and one that didn't. Comparing the output of "set" and "shopt" from
> > both shells didn't show any differences that could explain this.
>
> What's the output of trap?
>
> Andreas.
>
> --
> Andreas Schwab, [email protected]
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>
--
Keith Thompson <[email protected]>