1 2Last Updated: 3Fri Mar 12 12:53:43 EST 1999 4 5This is for people who do not read the manual! 6 7So far people who don't read manuals don't read this either... I may 8call it README.*PLEASE* in the future, but then the same people won't 9be able to get ftp it... :-) 10 111. Why is the meta key broken in tcsh-5.20 and up? 12 13 On some machines the tty is not set up to pass 8 bit characters by default. 14 Tcsh 5.19 used to try to determine if pass8 should be set by looking at 15 the terminal's meta key. Unfortunately there is no good way of determining 16 if the terminal can really pass 8 characters or not. Consider if you are 17 logged in through a modem line with 7 bits and parity and your terminal 18 has a meta key. Then tcsh 5.19 would set wrongly set pass8. 19 20 If you did like the previous behavior you can add in /etc/csh.login, or 21 in .login: 22 23 if ( $?tcsh && $?prompt ) then 24 if ( "`echotc meta`" == "yes" ) then 25 stty pass8 26 endif 27 endif 28 29 If you don't have pass8, maybe something like 30 31 stty -parity -evenp -oddp cs8 -istrip (rs6000) 32 or 33 stty -parenb -istrip cs8 34 35 would work.. 36 372. I ran 'dbxtool &' and 'shelltool &' from tcsh, and they end up in cbreak 38 and no echo mode? 39 40 These programs are broken. Background jobs should not try to look at the 41 tty. What happens is that dbxtool looks in stderr to inherit the tty 42 setups, but tcsh sets up the tty in cbreak and -echo modes, so that it 43 can do line editing. This cannot be fixed because tcsh cannot give away 44 the tty. A work-around is: 45 46 dbxtool < /dev/null >& /dev/null & 47 or 48 /usr/etc/setsid dbxtool & 49 50 If that does not work, for dbxtool at least you can add "sh stty sane" 51 in your .dbxinit 52 533. I tried to compile tcsh and it cannot find <locale.h>? 54 55 Your system does not support NLS. Undefine NLS in config_f.h and it 56 should work fine. 57 584. Where can I get csh sources? 59 60 Csh sources are now available with the 4.4BSD networking distributions. 61 You don't need csh sources to compile tcsh-6.0x. 62 635. I just made tcsh my login shell, and I cannot ftp any more? 64 65 Newer versions of the ftp daemon check for the validity of the 66 user's shell before they allow logins. The list of valid login 67 shells is either hardcoded or it is usually in a file called 68 /etc/shells. If it is hard-coded, then you are out of luck and 69 your best bet is to get a newer version of ftpd. Otherwise add 70 tcsh to the list of shells. [For AIX this file is called 71 /etc/security/login.cfg]. Remember that the full path is required. 72 If there is no /etc/shells, and you are creating one, remember to 73 add /bin/csh, /bin/sh, and any other valid shells for your system, 74 so that other people can ftp too :-) 75 766. I am using SunView/OpenWindows and editing is screwed up. In 77 particular my arrow keys and backspace don't work right. What 78 am I doing wrong? 79 80 Well, cmdtool tries to do its own command line editing and the 81 effect you get is one of using an editor inside an editor. Both 82 try to interpret the arrow key sequences and cmdtool wins since 83 it gets them first. The solutions are in my order of preference: 84 85 1 Don't use suntools 86 2 Use shelltool instead of cmdtool. 87 3 Unset edit in tcsh. 88 896b. On a SPARCstation running Solaris 2.x and OpenWindows 3.1, 90 inside a cmdtool, the short-cut key sequence to clear log 91 (i.e. Meta-e or Diamond-e) doesn't work: it just echos 'e' 92 936c. On a SPARCstation running Solaris 2.x and OpenWindows 3.1, 94 maketool (within SPARCworks) doesn't work: it just does 95 a `cd' to the working directory then stops. 96 97 The workaround for 6b and 6c is doing "unset edit." 98 Using shelltool instead of cmdtool doesn't fix 6c. 99 1007. I rlogin to another machine, and then no matter what I tell 'stty' 101 I cannot get it to pass 8 bit characters? 102 103 Maybe you need to use 'rlogin -8' to tell rlogin to pass 8 104 bit characters. 105 1068. Where do I get the public domain directory library? 107 108 Anonymous ftp to prep.ai.mit.edu:/pub/gnu/dirent.tar.Z 109 1109. I compiled tcsh using gcc, and when I start up it says: 111 tcsh: Warning no access to tty (Invalid Argument). 112 Thus no job control in this shell 113 114 Your <sys/ioctl.h> file is not ansi compliant. You have one of 3 choices: 115 a. Run fixincludes from the gcc distribution. 116 b. Add -traditional to the gcc flags. 117 c. Compile with cc. 118 11910. I compiled tcsh with the SunOS unbundled compiler and now things 120 get echo'ed twice. 121 122 It is a bug in the unbundled optimizer. Lower the optimization level. 123 12411. How can I use the arrow keys with hpterm? 125 Hp terminals use the arrow keys internally. You can tell hpterm not 126 to do that, by sending it the termcap sequence smkx. Since this 127 has to be done all the time, the easiest thing is to put it as an 128 alias for precmd, or inside the prompt: 129 130 if ($term == "hp") then 131 set prompt="%{`echotc smkx`%}$prompt" 132 endif 133 134 Note that by doing that you cannot use pgup and pgdn to scroll... 135 Also if you are using termcap, replace "smkx" with "ks"... 136 13712. On POSIX machines ^C and ^Z will do not work when tcsh is a login 138 shell? 139 Make sure that the interrupt character is set to ^C and suspend 140 is set to ^Z; 'stty -a' will show you the current stty settings; 141 'stty intr ^C susp ^Z' will set them to ^C and ^Z respectively. 142 14313. I am trying to compile tcsh and I am getting compile errors that 144 look like: 145 146 >sh.c:???: `STR???' undeclared, outside of functions [gcc] 147 or 148 >"sh.c", line ???: STR??? undefined [cc] 149 150 You interrupted make, while it was making the automatically 151 generated headers. Type 'make clean; make' 152 15314. On the cray, sometimes the CR/LF mapping gets screwed up. 154 155 You are probably logged in to the cray via telnet. Cray's 156 telnetd implements line mode selection the telnet client 157 you are using does not implement telnet line mode. 158 This cause the Cray's telnetd to try to use KLUDGELINEMODE. 159 You can turn off telnet line mode from the cray side by 160 doing a "stty -extproc", or you can get the Cray AIC to build 161 a telnetd without KLUDGELINEMODE, or you can compile 162 a new telnet client (from the BSD net2 tape), or at least 163 on the suns use: 'mode character'. 164 165 16615. On AU/X, I made tcsh my startup shell, but the mac desktop is not 167 starting up (no X11 or Finder), and I only get console emulation. 168 169 This is another manifestation of item 5. Just add the pathname 170 to tcsh in /etc/shells and everything should work fine. 171 17216. On machines that use YP (NIS) tilde expansion might end up in /dev/null 173 If this happens complain to your vendor, to get a new version of NIS. 174 You can fix that in tcsh by defining YPBUGS in config.h 175 17617. Script on SGI 4.0.5 does not give us a tty, so we cannot have job 177 control. Their csh does not have job control either. Try: 178 % script 179 % cat > /dev/tty 180 18118. I start tcsh and it takes a couple of minutes to get the prompt. 182 You have defined REMOTEHOST and your DNS is not responding. Either 183 undefine REMOTEHOST and recompile or fix your DNS. 184 18519. If you need help generating your .cshrc file, check out: 186 http://www.imada.ou.dk/~blackie/dotfile/ 187 18820. On POSIX systems the kernel will send hup signals to all the processes 189 in the foreground process group if 'stty hupcl' is set. For example 190 ./tcsh 191 echo $$ 192 591 193 ./tcsh 194 kill -6 591 195 196 Will kill everything, since hup will be sent to all tcsh processes. 197 To avoid that you can set stty -hupcl, but it is not recommended. 198 19921. When I rsh the meta key stops working on the remote machine. 200 201 Try using rsh -8; this option is undocumented on some systems, 202 but it works. If that does not work, get and use ssh/sshd. You'll 203 be better off from a security point of view anyway. 204 20522. Tcsh compiled under hp/ux-10.x does not pass resource limits correctly 206 when ran on hp/ux-11.x systems. This is a problem with lack of ABI 207 compatibility between the two systems. The only solution is to recompile. 208 209christos 210 211Everything else is a bug :-( 212