🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Jeff Sparkes Fri, 08 Sep 1989 06:30
1.03 comments
#563
Author: Jeff Sparkes
Date: Fri, 08 Sep 1989 06:30
49 lines
2414 bytes
A lot of this comes from enhancing vi mode. (coming soon)

rl_insert () is overzealous in setting the rl_display_fixed flag.  I
did rl_insert_text followed by rl_insert, and got a bunch of spaces.
rl_insert added the single char at the end without updating anything
before, so the inserted text showed up as spaces.

There doesn't seem to be an interactive comment, so I can't do # ala
ksh properly.  Now I insert ": " at the beginning of the line.

Undo isn't undoable, which makes doing the proper vi undo more
difficult than I care to attempt right now.

Each line of a loop is put into the history separately, so you can't do
!for.

Has anybody figured out a way to simulate the ksh r command?  ("r xx"
is equivalent to "!xx")  Since the history substitution takes place in
readline, something like
function r() { eval "\!$*" }
doesn't work.

On ultrix (2.2 anyway) you must set the terminal in RAW mode to get a
real meta character.  Is this true for any 4.2 derived system?

Filename completion does no globbing, so * doesn't work right in vi
mode.  If emacs users want globbing, it can easily be added.
Otherwise, it's a bit tougher to make vi and emacs do different things
for completion.

Setting ENV= gives to following error:
: Is a directory.
Maybe null ENV should be ignored.

Are there any plans for supporting history among multi shells on the
same machine?  ksh will write each command to the history file, and
then re-read it.  In bash, whoever writes the file last (most
recently) gets to put their entire history in.

Since we're doing a new shell, I'd like to see some path operators to
allow you to add a directory to path if it's not already there, and to
delete a dir.  It would be cleaner than setting and checking paths.
(xdmm adds /usr/bin/X11 to the path before it execs the shell, but
people tend to set their path absolutely, and then whine when they
can't run X programs)
--
Jeff Sparkes	jeff1@garfield.mun.edu || uunet!garfield!jeff1

					
1.03 comments
#559
Author: Kayvan Sylvan
Date: Fri, 08 Sep 1989 18:06
19 lines
1120 bytes
Jeff Sparkes writes:
> 
> Are there any plans for supporting history among multi shells on the
> same machine?  ksh will write each command to the history file, and
> then re-read it.  In bash, whoever writes the file last (most
> recently) gets to put their entire history in.
> 

I handle this by doing this in my .bash_profile:

mytty=`/bin/tty`
export HISTFILE=~/.bash_hist/`echo $mytty | sed 'sx/dev/ttyxx'`

That way, each shell has a separate hisory file.

			---Kayvan

Kayvan Sylvan @ Transact Software, Inc. -*-  Los Altos, CA (415) 961-6112
Internet: kayvan@Transact.COM -*- UUCP: ...!{apple,pyramid,mips}!mrspoc!kayvan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads