Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49851 - The man command hung up in complete process on tcsh (/etc/profile.d/tcsh-complete).
Summary: The man command hung up in complete process on tcsh (/etc/profile.d/tcsh-comp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-03 08:25 UTC by hao50750
Modified: 2005-09-30 12:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
a patch to /etc/profile.d/tcsh-complete (tcsh-complete.patch,781 bytes, text/plain)
2005-09-03 21:08 UTC, Tomoyuki Sakurai (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hao50750 2004-05-03 08:25:46 UTC
When I try man command, the command hung up in complete process (use tab key). While freezing, 'top' command shows that 'sed' is no control. Probably, there are some problems on 'complete man ......' 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="cjk" emerge tcsh
   # emerge jless-iso254
   # emerge manpages-ja

2. % setenv LANG ja_JP.eucJP
   % setenv PAGER "jless"
   % setenv JLESSCHARSET "ja"

3. % man <tab>key


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


Expected Results:  
A ablable list was showed.
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-05-03 12:18:31 UTC
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.
Comment 2 Eitan Levi 2005-01-06 23:11:24 UTC
I'm experiencing the same problem, but I've noticed that it only hangs when I supply a manual page as an argument to man. If I just enter 'man' on its own, I get:

> man
What manual page do you want?

If I specify a command line option, I get:
> 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's interesting is that if I specify the full path to man, it works perfectly. Like this: > /usr/bin/man ls

Running "which man" does return "/usr/bin/man" though... so it's not a problem there.

I hope this helps!
Comment 3 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-02-10 21:21:25 UTC
BTW, "unsetenv LANG" works as expected
> unsetenv LANG
> man man
Comment 4 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-09-03 21:08:25 UTC
Created attachment 67606 [details]
a patch to /etc/profile.d/tcsh-complete

try this patch.
if you have better regex, submit a patch.
Comment 5 Fabian Groffen gentoo-dev 2005-09-27 12:25:06 UTC
note to self: done
Comment 6 Fabian Groffen gentoo-dev 2005-09-30 12:38:42 UTC
Fixed in 6.14-r1