[gnu.bash.bug] readline is not quite independent of bash

jeff1@garfield.mun.edu (Jeff Sparkes) (09/18/89)

	I copied readline into the gdb directory to make use of my
extra vi stuff, and had to define the following to get it to link:

int follow_symbolic_links = 1;
char *the_current_working_directory = 0;
char *get_working_directory ();
char *make_absolute ();
pathname_backup ();

--
Jeff Sparkes	jeff1@garfield.mun.edu || uunet!garfield!jeff1

					

jeff1@garfield.mun.edu (Jeff Sparkes) (09/18/89)

In article <JEFF1.89Sep18120051@docboy.mun.edu> jeff1@garfield.mun.edu (Jeff Sparkes) writes:
	   I copied readline into the gdb directory to make use of my
   extra vi stuff, and had to define the following to get it to link:

   int follow_symbolic_links = 1;
   char *the_current_working_directory = 0;
   char *get_working_directory ();
   char *make_absolute ();
   pathname_backup ();


To be absolutely clear, I just included those functions from bash.
--
Jeff Sparkes	jeff1@garfield.mun.edu || uunet!garfield!jeff1

					

bfox@AUREL.CALTECH.EDU (Brian Fox) (09/18/89)

   Date: 18 Sep 89 11:00:51 GMT
   From: garfield!stretch!jeff1@uunet.uu.net  (Jeff Sparkes)
   Organization: Memorial University of Newfoundland
   Sender: bug-bash-request@prep.ai.mit.edu


	   I copied readline into the gdb directory to make use of my
   extra vi stuff, and had to define the following to get it to link:

   int follow_symbolic_links = 1;
   char *the_current_working_directory = 0;
   char *get_working_directory ();
   char *make_absolute ();
   pathname_backup ();


This is not a bash bug.

Readline is not officially released yet.

You have to compile it as a separate library, without defining -DSHELL
(which is why you had the problem linking).

Brian

bfox@AUREL.CALTECH.EDU (Brian Fox) (09/18/89)

   Date: 18 Sep 89 11:09:56 GMT
   From: garfield!stretch!jeff1@uunet.uu.net  (Jeff Sparkes)
   Organization: Memorial University of Newfoundland
   References: <JEFF1.89Sep18120051@docboy.mun.edu>
   Sender: bug-bash-request@prep.ai.mit.edu

   In article <JEFF1.89Sep18120051@docboy.mun.edu> jeff1@garfield.mun.edu (Jeff Sparkes) writes:
	      I copied readline into the gdb directory to make use of my
      extra vi stuff, and had to define the following to get it to link:

      int follow_symbolic_links = 1;
      char *the_current_working_directory = 0;
      char *get_working_directory ();
      char *make_absolute ();
      pathname_backup ();


   To be absolutely clear, I just included those functions from bash.

The behaviour you get when you complete a filename that contains ".."'s
may be inconsistent with Gdb's idea of what that filename should be.

The readline.c needs to be recompiled without any special definitions.

	cd readline
	make clean
	make
Brian