www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/27/17:18:01.1

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: BASH startup files
Date: Sun, 27 Aug 2000 21:47:31 +0100
Organization: Customer of Energis Squared
Lines: 65
Message-ID: <l9uiqs8og5mbj4kratc9c4261f7eiel1cv@4ax.com>
NNTP-Posting-Host: modem-194.argon.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news6.svr.pol.co.uk 967409283 20983 62.136.17.194 (27 Aug 2000 20:48:03 GMT)
NNTP-Posting-Date: 27 Aug 2000 20:48:03 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have a couple of problems with my installation of BASH, any help
would be appreciated.

Problem 1) 

BASH will not source the startup files _blogin or _bash_login.

Following the instructions in readme.dos, I have set HOME=d:/ and
copied all the supplied startup files from gnu/bash-2.03/dos/ to d:/

_blogin should set the command prompt and print a welcome message, but
this is not happening:

D:\>echo %HOME%
d:/

D:\>bash
bash-2.03$ echo $HOME; pwd
d:/
d:/
bash-2.03$ ls -l _*
-rw-r--r--   1 dosuser  root          267 Dec 30  1996 _bashrc
-rw-r--r--   1 dosuser  root        11402 Aug 27 20:44 _bhist
-rw-r--r--   1 dosuser  root         1018 Apr 19  1997 _blogin
-rw-r--r--   1 dosuser  root           40 Dec 30  1996 _blogout
-rw-r--r--   1 dosuser  root         1378 Apr 19  1999 _inputrc
bash-2.03$

I can confirm, however, that  _bashrc *is* being sourced.  So it seems
for some reason that _blogin is not being found, did I miss something
in the documentation?


Problem 2)

Cursor keys are not being handled properly after a reverse search
(Ctrl-r), they work fine otherwise.  Here's an example:

bash-2.03$ foo
bash: foo: command not found
bash-2.03$

Now type `Ctrl-r' then `f'

bash-2.03$ foo
bash: foo: command not found
(reverse-i-search)`f': foo

Now hit the right cursor key...

bash-2.03$ foo
bash: foo: command not found
bash-2.03$ [Cfoo

and half an escape sequence is inserted.  `Ctrl-f' works as expected. 

Can anyone reproduce this?


I have stripped out virtually everything from my dos setup to make it
as vanilla as possible.  There is no keyboard.sys, display.sys,
ansi.sys, country.sys or in fact anything.sys loaded.  _inputrc must
have been read because pressing F1 prints:

bash-2.03$ Function Key 1

- Raw text -


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