Subject: Re: scp and IOCTL error
To: None <shnek@tiscali.cz>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 04/03/2004 12:52:58
In message <406EDB68.1080108@tiscali.cz>, Lubos Vrbka writes:
>
>>      ...
>>      Is confused by any output generated by commands in a .login, .profile, 
>or
>>      .cshrc file on the remote host.
>> 
>> It is not exactly true, but that is the issue.
>
>well, it was caused by stty erase ^? in my .kshrc, because as i removed 
>it, the error disappeared.
>it was caused by moving this command from .profile to .kshrc (i tested 
>it now) - why does it behave this way?
>
>thanks for your help
>

'stty' applies to ttys, which you have for interactive login sessions.
.kshrc is executed for all sessions, including ones where stdin isn't a 
tty.  The solution, other than moving it to your .profile, is to make 
execution conditional on it being an interactive shell.

		--Steve Bellovin, http://www.research.att.com/~smb