Article View: gnu.bash.bug
Article #593Re: Seeing control characters in aliases and functions
From: Rich Salz
Date: Thu, 14 Sep 1989 22:16
Date: Thu, 14 Sep 1989 22:16
27 lines
1275 bytes
1275 bytes
In <8909142124.AA25167@aurel.caltech.edu> bfox@aurel.caltech.edu suggests
I fix my "pwd" function to use "echo -e":
function pwd () {
echo -n -e "\033]lBASH@${host}(${TTY}):$PWD\033\010"
}
Hand smacks head, and voice goes "duh."
>Thanks for the neat function!
No prob. Of course, it makes the most sense when used with this:
function cd() {
builtin cd $*;
pwd
}
and similar functions for pushd/popd.
I re-complained about
> function bxmf() {
> make -k "$@" >foo 2>&1 &
> # why is the next line necessary?
> : ;
> }
Brian pointed out that it isn't in 1.03.... hand smacks the head
again, voice goes "try it before posting."
/r$
--
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:
<1953@prune.bbn.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bbn!bbn.com!rsalzReferences:
<1952@prune.bbn.com> <8909142124.AA25167@aurel.caltech.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bbn!bbn.com!rsalz From: rsalz@bbn.com (Rich Salz) Newsgroups: gnu.bash.bug Subject: Re: Seeing control characters in aliases and functions Message-ID: <1953@prune.bbn.com> Date: 14 Sep 89 22:16:26 GMT References: <1952@prune.bbn.com> <8909142124.AA25167@aurel.caltech.edu> Distribution: gnu Organization: BBN Systems and Technologies Corporation Lines: 27