Article View: gnu.bash.bug
Article #588Seeing control characters in aliases and functions
From: Rich Salz
Date: Thu, 14 Sep 1989 16:25
Date: Thu, 14 Sep 1989 16:25
28 lines
1204 bytes
1204 bytes
Given these functions:
TTY=`tty | sed -e s:/dev/ttyp::`
host=`hostname | tr a-z A-Z | sed -e s/.BBN.COM//`
function pwd() {
# This has two ESCAPEs and one BACKSPACE in it.
echo -n "^[]lBASH@${host}(${TTY}):$PWD^[\^H"
}
function cd() {
builtin cd $*;
pwd;
}
When I say "type pwd" my window banner gets all messed up. I know
that being able to take your output as input is a good thing, but having
to put "|cat -v" on the end all the time is a pain.
Also, while I'm here:
function bxmf() {
make -k "$@" >foo 2>&1 &
# It doesn't seem quite right that this next line is really needed...
: ;
}
--
Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.
Technical Details
Message-ID:
<1952@prune.bbn.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!brutus.cs.uiuc.edu!wuarchive!cs.utexas.edu!mailrus!bbn!bbn.com!rsalzShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!brutus.cs.uiuc.edu!wuarchive!cs.utexas.edu!mailrus!bbn!bbn.com!rsalz From: rsalz@bbn.com (Rich Salz) Newsgroups: gnu.bash.bug Subject: Seeing control characters in aliases and functions Message-ID: <1952@prune.bbn.com> Date: 14 Sep 89 16:25:22 GMT Distribution: gnu Organization: BBN Systems and Technologies Corporation Lines: 28