delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/23/14:11:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Apparently-From: <yamashita?kenji1972 AT yahoo DOT co DOT jp>
Date: Mon, 24 Dec 2001 04:10:28 +0900 (JST)
Message-Id: <20011224.041028.132850596.yamashita_kenji1972@yahoo.co.jp>
To: cygwin AT cygwin DOT com
Subject: completion problem of tcsh-6.11.00-2
From: Kenji Yamashita <yamashita_kenji1972 AT yahoo DOT co DOT jp>
X-Mailer: Mew version 3.0.51 on Emacs 20.7 / Mule 4.1 (AOI)
Mime-Version: 1.0

Hello,

I have a problem with tcsh version 6.11.00-2. This version of tcsh
includes the following files.
	 /etc/csh.cshrc, /etc/csh.login,
	 /etc/profile.d/bindkey.tcsh, /etc/profile.d/complete.tcsh

"complete.tcsh" has entries of a completion variable whose length is
larger than 259. But MAXPATHLEN is (260 - 1) in sys/param.h. So in
the case of these variables completion fails. For example,

% gcc <TAB>
Missing separator '/' after completion "(caller-saves cse-follow-jumps delayed-branch
                               elide-constructors expensive-optimizations
                               float-store force-addr force-mem inline
                               inline-functions keep-inline-functions
                               memoize-lookups no-default-inline
                               no-defer-pop no-function-cse omit-frame-pointer
                               rerun-cse-after-loop schedule-insns
                               schedule-insns2 strength-reduce
                               thread-jumps unroll-all-loops
                               unroll-loops syntax-only all-virtual
                               cond-mismatch dollars-in-identifiers
                               enum-int-equiv no-asm no-builtin
                               no-strict-prototype signed-bitfields
                               signed-char this-is-variable unsigned-bitfields
                               unsigned-char writable-strings call-saved-reg
                               call-used-reg fixed-reg no-common
                               no-gnu-binutils nonnull-objects
                               pcc-struct-return pic PIC shared-data
                               short-enums short-double volatile)/".
% 

So I make the following ad-hoc patch. Please revise it.

Regards,
Kenji Yamashita
yamashita_kenji1972 AT yahoo DOT co DOT jp

*** sh.h.orig   Mon Dec 24 01:56:23 2001
--- sh.h        Mon Dec 24 02:26:30 2001
***************
*** 1017,1022 ****
--- 1017,1026 ----

  #define MAXVARLEN 30          /* Maximum number of char in a variable name */

+ #ifdef __CYGWIN__
+ # undef MAXPATHLEN
+ #endif /* __CYGWIN__ */
+
  #ifndef MAXPATHLEN
  # define MAXPATHLEN 2048
  #endif /* MAXPATHLEN */
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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