<?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>156422</bug_id>
          
          <creation_ts>2006-11-27 09:28 0000</creation_ts>
          <short_desc>app-shells/tcsh - csh.login asks for terminal, but does not set it</short_desc>
          <delta_ts>2006-12-05 07:04:28 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>uhlar@fantomas.sk</reporter>
          <assigned_to>grobian@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>uhlar@fantomas.sk</who>
            <bug_when>2006-11-27 09:28:43 0000</bug_when>
            <thetext>the /etc/csh.login contains this line:

    if ( -x &quot;`which tset`&quot; ) tset -I -Q

it causes tset ask for the correct terminal type, but does not set it
according to tset manpage, it should look like:

    if ( -x &quot;`which tset`&quot; ) eval `tset -I -Q`</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-11-27 13:33:46 0000</bug_when>
            <thetext>hmmm... I can&apos;t find anything about that.  The command doesn&apos;t output anything for me either.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uhlar@fantomas.sk</who>
            <bug_when>2006-11-27 13:40:49 0000</bug_when>
            <thetext>Oops!
eval `tset -Q -I -s`
should do the trick</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-12-02 06:04:23 0000</bug_when>
            <thetext>Fixed in revision -r4 now.  Including your comment on setting SHELL.

Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uhlar@fantomas.sk</who>
            <bug_when>2006-12-05 06:15:09 0000</bug_when>
            <thetext>Thank you.
btw, it would be nice if user could handle this (terminal setting) itself. This requires either indication that user will take care of it himself, or even move this section to skeleton .login file.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-12-05 06:21:32 0000</bug_when>
            <thetext>well, I was wondering while changing it, what it is supposed to do.  Because it only sets the TERM variable, which is already set by the terminal.  And if not, the if-block just makes it term=linux.  So maybe the whole tset thing should go?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uhlar@fantomas.sk</who>
            <bug_when>2006-12-05 06:37:08 0000</bug_when>
            <thetext>it asks for terminal type if the current $TERM is not recognized by the system.
(I have currently problems with xterm-debian, which was already supported by ncurses, but is not now, see bug 18486)

I use to set up xterm-color automatically in such case in my .login, but the system-wide csh.login still asks me for this, because it&apos;s run before the one in ~</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-12-05 06:59:04 0000</bug_when>
            <thetext>what?!? that tool is interactive?!?  Ok, it&apos;s completely out as that is not acceptable for sure.  If you want to do it, you have to do it yourself.  Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uhlar@fantomas.sk</who>
            <bug_when>2006-12-05 07:04:28 0000</bug_when>
            <thetext>I don&apos;t think it&apos;s THAT bad, as long as it is in the .login file, which is only invoked when the shell is executed as login shell (which is expected to be interactive).
However, do as you decide :)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>