"Clark J. Wang" writes:
> For example:
>
> [bash-4.2.8] # cat a.sh
> trap '' TERM
> bash b.sh
> [bash-4.2.8] # cat b.sh
> echo "Now in $0 ..."
> trap sig_TERM TERM
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#trap
"Signals that were ignored on entry to a non-interact
On Tue, Jul 12, 2011 at 3:34 PM, Andreas Schwab wrote:
> "Clark J. Wang" writes:
>
> > For example:
> >
> > [bash-4.2.8] # cat a.sh
> > trap '' TERM
> > bash b.sh
> > [bash-4.2.8] # cat b.sh
> > echo "Now in $0 ..."
> > trap sig_TERM TERM
>
>
> http://pubs.opengroup.org/onlinepubs/9699919799/util
Try like this:
[bash-4.2.8] # set -o vi
[bash-4.2.8] # bind -m vi-insert '"jj": "\e"'
[bash-4.2.8] # echo jk
[bash-4.2.8] # echo k
[bash-4.2.8] #
Then press ctrl-r and enter jk to search. It'll find ``echo k'' instead of
``echo jk''. Bug?