update usage, use sftp -b /dev/stdin

This commit is contained in:
rsc 2005-03-20 23:39:48 +00:00
parent 80097b0182
commit baf7825e82
3 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
#!/usr/local/plan9/bin/rc
if(! ~ $#* 2){
echo usage: netisdir system path >[1=2]
echo usage: netfilestat system path >[1=2]
exit usage
}
@ -18,7 +18,7 @@ fn dostat {
echo !echo XXX connected
echo cd $2
echo !echo XXX directory exists
} | sftp -b - $1 >$t >[2=1]
} | sftp -b /dev/stdin $1 >$t >[2=1]
if(9 grep -s XXX.directory.exists $t){
echo directory
exit 0