bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'fc' outputing text of DEBUG trap


From: Boruch Baum
Subject: 'fc' outputing text of DEBUG trap
Date: Fri, 27 Oct 2017 02:21:26 -0400
User-agent: NeoMutt/20170609 (1.8.3)

In Debian, using Bash version 4.4, path level 12, I've set a DEBUG trap
in my .bashrc and tried running the following command, with the
following output resulting. The five lines between the command being run
by fc and that command's output, is the text of the DEBUG trap.


1075 $ fc -e true 1072 1073
which mutt
 >/dev/tty \
       printf "\033%s${title_fmt}" "[01;00m" "${BASH_COMMAND}"; \
       [[ -z ${prior_cmd}  ]] && SECONDS=0 ;                    \
       [[ "${BASH_COMMAND}" != "my_prompt_command" ]]           \
       && { prior_cmd="${BASH_COMMAND}"; SECONDS=0; }           \

/usr/bin/mutt
which bash
 >/dev/tty \
       printf "\033%s${title_fmt}" "[01;00m" "${BASH_COMMAND}"; \
       [[ -z ${prior_cmd}  ]] && SECONDS=0 ;                    \
       [[ "${BASH_COMMAND}" != "my_prompt_command" ]]           \
       && { prior_cmd="${BASH_COMMAND}"; SECONDS=0; }           \

/bin/bash

-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]