Dynamic Titles in urxvt (bash) Without Side Effects?

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



Hey,

I've added the following lines to my .bashrc:

    case "$TERM" in
        rxvt*|xterm*)
            set -o functrace
            trap '[ -z "$BASH_SOURCE" ] && printf "%b" "\e]0;$BASH_COMMAND\a"' DEBUG >& /dev/null
            ;;
    esac

(It sets the current title of the current window according to the last
ran command.)

But alas, it generates side effects, if I issue this:

    ls "$(ls -1 | head -1)"

I get:

    ls: cannot access foo.bar: No such file or directory

Strange or trivial?

Cheers,
-- 
Bastien


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux