3
Fri Mar 12 12:53:43 EST 1999
5
This is for people who do not read the manual!
7
So far people who don't read manuals don't read this either... I may
8
call it README.*PLEASE* in the future, but then the same people won't
9
be able to get ftp it... :-)
11
1. Why is the meta key broken in tcsh-5.20 and up?
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.
20
If you did like the previous behavior you can add in /etc/csh.login, or
23
if ( $?tcsh && $?prompt ) then
24
if ( "`echotc meta`" == "yes" ) then
29
If you don't have pass8, maybe something like
31
stty -parity -evenp -oddp cs8 -istrip (rs6000)
33
stty -parenb -istrip cs8
37
2. I ran 'dbxtool &' and 'shelltool &' from tcsh, and they end up in cbreak
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:
46
dbxtool < /dev/null >& /dev/null &
48
/usr/etc/setsid dbxtool &
50
If that does not work, for dbxtool at least you can add "sh stty sane"
53
3. I tried to compile tcsh and it cannot find <locale.h>?
55
Your system does not support NLS. Undefine NLS in config_f.h and it
58
4. Where can I get csh sources?
60
Csh sources are now available with the 4.4BSD networking distributions.
61
You don't need csh sources to compile tcsh-6.0x.
63
5. I just made tcsh my login shell, and I cannot ftp any more?
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 :-)
76
6. I am using SunView/OpenWindows and editing is screwed up. In
77
particular my arrow keys and backspace don't work right. What
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:
86
2 Use shelltool instead of cmdtool.
89
6b. 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'
93
6c. 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.
97
The workaround for 6b and 6c is doing "unset edit."
98
Using shelltool instead of cmdtool doesn't fix 6c.
100
7. I rlogin to another machine, and then no matter what I tell 'stty'
101
I cannot get it to pass 8 bit characters?
103
Maybe you need to use 'rlogin -8' to tell rlogin to pass 8
106
8. Where do I get the public domain directory library?
108
Anonymous ftp to prep.ai.mit.edu:/pub/gnu/dirent.tar.Z
110
9. 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
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.
119
10. I compiled tcsh with the SunOS unbundled compiler and now things
122
It is a bug in the unbundled optimizer. Lower the optimization level.
124
11. 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:
130
if ($term == "hp") then
131
set prompt="%{`echotc smkx`%}$prompt"
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"...
137
12. On POSIX machines ^C and ^Z will do not work when tcsh is a login
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.
143
13. I am trying to compile tcsh and I am getting compile errors that
146
>sh.c:???: `STR???' undeclared, outside of functions [gcc]
148
>"sh.c", line ???: STR??? undefined [cc]
150
You interrupted make, while it was making the automatically
151
generated headers. Type 'make clean; make'
153
14. On the cray, sometimes the CR/LF mapping gets screwed up.
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'.
166
15. 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.
169
This is another manifestation of item 5. Just add the pathname
170
to tcsh in /etc/shells and everything should work fine.
172
16. 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
176
17. 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:
181
18. 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.
185
19. If you need help generating your .cshrc file, check out:
186
http://www.imada.ou.dk/~blackie/dotfile/
188
20. 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
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.
199
21. When I rsh the meta key stops working on the remote machine.
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.
205
22. 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.
211
Everything else is a bug :-(