$ 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 <sch...@linux-m68k.org>
wrote:

> Keith Thompson <keithsthomp...@gmail.com> 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, sch...@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>



-- 
Keith Thompson <keith.s.thomp...@gmail.com>

Reply via email to