delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/12/11/09:50:52

From: richardd AT cix DOT compulink DOT co DOT uk (Richard Donkin)
Subject: Bash termcap and history file
11 Dec 1996 09:50:52 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <memo.445803.cygnus.gnu-win32@cix.compulink.co.uk>
Reply-To: richardd AT cix DOT compulink DOT co DOT uk
Original-To: gnu-win32 AT cygnus DOT com
Original-Cc: richardd AT cix DOT compulink DOT co DOT uk
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Using B17 on Win95 with the provided bash 1.14.6(1), I have a couple of 
problems:

1. Currently bash has TERM=dumb, so inserting into a command line using 
readline re-outputs the rest of the line, quite slowly.

I have tried setting TERM=ansi and pointing TERMCAP to an older Gnu-Win32 
termcap, and to the VIM termcap, but neither has any effect.

Has anyone managed to work around this?  If so, please post the relevant 
termcap entry or whatever.

2. I can't get the history file working properly.  Specifically, 'history 
-r' does not work - it does not give an error message but does nothing to 
the history list, with or without a filename.  I can do 'history -w' OK (and 
bash saves it automatically as well), but bash never reads this in again on 
startup, with 'bash -login' or just 'bash'.  Also, 'history -a' does 
nothing.  

My variable settings look like:

HISTCONTROL=ignoredups
HISTFILE=/richardd/.bash_history
HISTFILESIZE=500
HISTSIZE=500
command_oriented_history=

Again, I am curious whether there is a workaround to this.  

Thanks

Richard
--
richardd AT cix DOT compulink DOT co DOT uk                http://www.inside-edge.co.uk/
Inside Edge Consultancy           Client/Server and Internet Applications
PGP key from:  pgp-public-keys AT keys DOT pgp DOT net  -or-  http://www.four11.com/

-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019