<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>49851</bug_id>
          
          <creation_ts>2004-05-03 08:25 0000</creation_ts>
          <short_desc>The man command hung up in complete process on tcsh (/etc/profile.d/tcsh-complete).</short_desc>
          <delta_ts>2005-09-30 12:38:42 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>hao50750@rio.odn.ne.jp</reporter>
          <assigned_to>grobian@gentoo.org</assigned_to>
          <cc>cjk@gentoo.org</cc>
    
    <cc>trombik@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>hao50750@rio.odn.ne.jp</who>
            <bug_when>2004-05-03 08:25:46 0000</bug_when>
            <thetext>When I try man command, the command hung up in complete process (use tab key). While freezing, &apos;top&apos; command shows that &apos;sed&apos; is no control. Probably, there are some problems on &apos;complete man ......&apos; lines in /etc/profile.d/tcsh-complete, and there is a lot of files in $MANPATH on my computer because of emerged manpages-jp.


Reproducible: Always
Steps to Reproduce:
1. # USE=&quot;cjk&quot; emerge tcsh
   # emerge jless-iso254
   # emerge manpages-ja

2. % setenv LANG ja_JP.eucJP
   % setenv PAGER &quot;jless&quot;
   % setenv JLESSCHARSET &quot;ja&quot;

3. % man &lt;tab&gt;key


Actual Results:  
The shell hung up until press ctrl-c.


Expected Results:  
A ablable list was showed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>usata@gentoo.org</who>
            <bug_when>2004-05-03 12:18:31 0000</bug_when>
            <thetext>This is not caused by manpages-ja. The problem is in tcsh-complete
itself. Even though I removed manpages-ja (I have man and man-pages),
tcsh hangs when I run `man man`. `alias myman man; myman man` runs
perfectly fine, so there is something wrong in man completion code in 
tcsh-complete.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>drskrud@skrud.net</who>
            <bug_when>2005-01-06 23:11:24 0000</bug_when>
            <thetext>I&apos;m experiencing the same problem, but I&apos;ve noticed that it only hangs when I supply a manual page as an argument to man. If I just enter &apos;man&apos; on its own, I get:

&gt; man
What manual page do you want?

If I specify a command line option, I get:
&gt; man -v
man, version 1.5m

-h works too, so does -k and apropos. But as soon as I specify a man page that I want to look at, it just freezes.

Also what&apos;s interesting is that if I specify the full path to man, it works perfectly. Like this: &gt; /usr/bin/man ls

Running &quot;which man&quot; does return &quot;/usr/bin/man&quot; though... so it&apos;s not a problem there.

I hope this helps!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>trombik@gentoo.org</who>
            <bug_when>2005-02-10 21:21:25 0000</bug_when>
            <thetext>BTW, &quot;unsetenv LANG&quot; works as expected
&gt; unsetenv LANG
&gt; man man
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>trombik@gentoo.org</who>
            <bug_when>2005-09-03 21:08:25 0000</bug_when>
            <thetext>Created an attachment (id=67606)
a patch to /etc/profile.d/tcsh-complete

try this patch.
if you have better regex, submit a patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2005-09-27 12:25:06 0000</bug_when>
            <thetext>note to self: done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2005-09-30 12:38:42 0000</bug_when>
            <thetext>Fixed in 6.14-r1</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>67606</attachid>
            <date>2005-09-03 21:08 0000</date>
            <desc>a patch to /etc/profile.d/tcsh-complete</desc>
            <filename>tcsh-complete.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHRjc2gtY29tcGxldGUub3JpZwkyMDA1LTA5LTA0IDExOjU2OjI2LjAwMDAwMDAwMCArMDkw
MAorKysgdGNzaC1jb21wbGV0ZQkyMDA1LTA5LTA0IDEzOjAwOjIzLjAwMDAwMDAwMCArMDkwMApA
QCAtNjg4LDcgKzY4OCw3IEBACiAJICAgIGNALUAiKC0gZiBrIE0gUCBzIFMgdCkiQCBuQC1mQGNA
IG5ALWtAeDonPGtleXdvcmQ+J0AgbkAtW01QXUBkQCAgIFwKIAkgICAgJ05ALVtNUF1AYFxscyAt
MSAkOi0xL21hbj8gfCYgc2VkIC1uIHMlXFwuLlxcK1wkJSVwYEAnICAgICAgICAgICAgXAogCSAg
ICAnbkAtW3NTXUBgXGxzIC0xICRNQU5QQVRIOmFzJTolICUgfCYgc2VkIC1uIHMlXm1hbiUlcCB8
IHNvcnQgLXVgQCdcCi0JICAgICduQCpAYGZpbmQgJE1BTlBBVEg6YXMlOiUgJSBcKCAtdHlwZSBm
IC1vIC10eXBlIGwgXCkgLXByaW50ZiAiJWYgIiB8JiBzZWQgLWUgInMlZmluZDogLio6IE5vIHN1
Y2ggZmlsZSBvciBkaXJlY3RvcnklJSIgLWUgInMlXChbXlwuXVwrXClcLlwoW14gXSpcKSAlXDEg
JWciYEAnCisJICAgICduQCpAYGZpbmQgJE1BTlBBVEg6YXMlOiUgJSBcKCAtdHlwZSBmIC1vIC10
eXBlIGwgXCkgLXByaW50ZiAiJWZcbiIgfCYgc2VkIC1lICJzJVwuXChbMS05XVthLXpdXD9cfFsx
LTldcG1cKVwuZ3olJWciIHwgc29ydCB8IHVuaXFgQCcKIAkgICAgI25AKkBjQCAjIG9sZCB3YXkg
LS0gY29tbWFuZHMgb25seQogCiAgICAgY29tcGxldGUgcHMJICAgICAgICBjLy10L3g6Jzx0dHk+
Jy8gYy8tLyIoYSBjIEMgZSBnIGsgbCBTIHQgdSB2IHcgeCkiLyBcCg==
</data>        

          </attachment>
    </bug>

</bugzilla>