Page 1 of 1

sftp, scp or rsync don't work if your login shell is zsh

Posted: Mon Aug 06, 2012 2:44 pm
by bakul
This is what happens:

Code: Select all

$ scp testfile shell.sonic.net:public_ftp/outgoing
editor () {
$ stdin: is not a tty
I see basically the same thing with rsync and sftp.

I tracked this down to line 99 in /etc/profile. This file gets included from /etc/zshenv, which is run when you login and if your login shell is zsh. Functions needed for interactive use should not be included like this, breaking scripts.

I can't even change my login shell to test this theory!

Can some sysop staff person please fix this? Thanks!

Re: sftp, scp or rsync don't work if your login shell is zs

Posted: Tue Aug 07, 2012 5:24 pm
by augie
I've commented out the line in /etc/zshenv ; let us know if that helps.

Re: sftp, scp or rsync don't work if your login shell is zs

Posted: Wed Aug 08, 2012 12:29 am
by bakul
augie wrote:I've commented out the line in /etc/zshenv ; let us know if that helps.
That fixes the problem. Thanks very much!