🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #359

Some change requests, some questions, etc.

#359
From: Rich Salz
Date: Wed, 19 Jul 1989 22:08
39 lines
1766 bytes
It would be great if I could have \R and \r for enter and exit reverse
video in the prompt.

It would be nice to have a shell variable that controls whether the
readline stuff does a beep or a visible bell.

Since shell functions apparently have to end with a semicolon, and since
"&;" gets a syntax error, I've had to do this.  Is this a bug or feature?
    function bxmf() {
	make -k "$@" >foo 2>&1 &
	: ;
    }

Also, given the following:
    TTY=`tty | sed -e s:/dev/ttyp::`
    host=`hostname | tr a-z A-Z | sed -e s/.BBN.COM//`

    # The ^[ stands for ESCAPE, twice, below.
    function pwd() {
	echo -n "^[]lBASH@${host}(${TTY}):$PWD^[\^H"
    }

Doing a "pwd" still leaves a blank line on my tty.  A bug in "echo -n"?
Also doing a "type pwd" mangles the banner line.  Could things be changed
so that the control chars are dumped out in their printable form when
displaying functions, aliases, etc?

Is there no easy way to get or set the keybindings at run-time?  And a
list of what the functions are?  I know this will probably involve new
hooks into the new readline and history libraries.

Is there a variable I can set to turn off the modification indicator in
the prompt?

BASH is way cool.  It's not yet my login shell, but soon.  Thanks!
	/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: <1905@prune.bbn.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!bbn!bbn.com!rsalz

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!bbn!bbn.com!rsalz
From: rsalz@bbn.com (Rich Salz)
Newsgroups: gnu.bash.bug
Subject: Some change requests, some questions, etc.
Message-ID: <1905@prune.bbn.com>
Date: 19 Jul 89 22:08:08 GMT
Organization: BBN Systems and Technologies Corporation
Lines: 39