ns=`{namespace} if([2]/dev/null) f=$f^9p fn mysftp { if(! [2]/dev/null){ echo 'caching sftp' $1 >[1=2] sftpcache -D $1 } if(! [2]/dev/null){ sftp -b /dev/stdin $1 } if not{ {cat; echo DONE} | dial -e 'unix!'^$ns/$1.sftp } } t=/tmp/netfilexxx.$pid.$USER fn sigexit { rm -f $t $t.e $t.e2 }