More debugging; do not use /dev/tty explicitly.

This commit is contained in:
rsc 2005-03-24 05:45:01 +00:00
parent 3ae1a866fe
commit 78b5635d69
2 changed files with 5 additions and 2 deletions

View file

@ -13,7 +13,7 @@ fn runsftp {
shift
}
if(! </dev/null dial 'unix!'^$ns/$1.sftp >[2]/dev/null){
sftpcache -D $1 >/dev/tty
sftpcache -D $1 </dev/null >[1=2]
}
{
if(! </dev/null dial 'unix!'^$ns/$1.sftp >[2]/dev/null){
@ -23,7 +23,6 @@ fn runsftp {
{cat; echo DONE} | dial -e 'unix!'^$ns/$1.sftp
}
} >$t.sftp1 >[2=1]
sed 's/^/1 /' $t.sftp1
sed '/^sftp> /d
/^Connecting to /d
/^Fetching /d