[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

TCSH patch...



Hi,

I tried to compile tcsh under Hurd, and got a compilation error due to
tcsh using a gnu library...  Any ways, it's pretty easy to fix. 
Attached is a patch that can be applied...

Notice that in order to compile it libncurses5-dev must be installed
previously (don't know if also libncursesw5-dev, I installed both when
finding out I needed dev linbcurses)...

What the patch includes is just a global replacement of rcmd by tcsh_rcmd...

Configuring as the source come (no special configure options) the
following settings are required (1st one under console and any term,
next ones for aterm/mrxvt, I don't use xterm...), but maybe some
options may be provided (under debian/linux there's no need for these
settings):

bindkey "\e[3~" delete-char
bindkey "\e[1~" beginning-of-line
bindkey "\e[7~" beginning-of-line
bindkey "\e[4~" end-of-line
bindkey "\e[8~" end-of-line

Hope it helps...

--
Javier-Elias Vasquez-Vivas
--- 6.14.00-old/ma.setp.c	2004-08-04 11:12:28.000000000 -0600
+++ 6.14.00/ma.setp.c	2005-09-25 16:06:20.000000000 -0600
@@ -135,7 +135,7 @@
 static int initpaths	__P((char **));
 static void savepaths	__P((char **));
 static void freepaths	__P((void));
-static void rcmd	__P((char *));
+static void tcsh_rcmd	__P((char *));
 static void icmd	__P((char *, char *));
 static void iacmd	__P((char *, char *));
 static void ibcmd	__P((char *, char *));
@@ -174,7 +174,7 @@
 	case 'r':
 	    if (cmd[2] != '\0')
 		INVALID;
-	    rcmd(localsyspath);
+	    tcsh_rcmd(localsyspath);
 	    break;
 	case 'i':
 	    if (cmd[2] == '\0') {
@@ -345,7 +345,7 @@
  ***********************************************/
 
 static void
-rcmd(localsyspath)		/* reset path with localsyspath */
+tcsh_rcmd(localsyspath)		/* reset path with localsyspath */
 char *localsyspath;
 {
     int n, done;

Reply to: