Hi! On Sat, Jun 12, 1999 at 01:23:46AM +0200, Guido Flohr wrote: > There is no way to do that. For the telnet problem set UNIXMODE from > within the startup scripts in /etc (either profile or cshrc). Since > telnet will always launch a login shell these scripts will get evaluated. Setting UNIXMODE in /etc/profile or /etc/csh.login or any other shell startup script won't affect the behaviour of here documents, as these scripts are sourced by the already running login shell. And setting an environment variable in a running shell won't of course effect the environment (and thus, neither the behaviour) of the shell itself. Maybe this is the whole problem. I tried to reproduce the behaviour you described and it only happened when UNIXMODE wasn't set when the shell started. In a mis-behaving shell, setting UNIXMODE and "exec"ing a new instance of the shell cured the problem, i.e.: (Here documents with CRLF) # export UNIXMODE=/brU # exec bash -login (Here documents now with LF only) Ciao Thomas -- Thomas Binder (Gryf @ IRCNet) gryf@hrzpub.tu-darmstadt.de PGP-key available on request! binder@rbg.informatik.tu-darmstadt.de Vote against SPAM: http://www.politik-digital.de/spam/
Attachment:
pgp1lMKDgyKlR.pgp
Description: PGP signature