- (djm) Release 4.6p1
[openssh-git.git] / regress / sftp-glob.sh
blobe238356a21fa392680780a541fbd85c41a606bc2
1 # $OpenBSD: sftp-glob.sh,v 1.1 2004/12/10 01:31:30 fgsch Exp $
2 # Placed in the Public Domain.
4 tid="sftp glob"
6 BASE=${OBJ}/glob
7 DIR=${BASE}/dir
8 DATA=${DIR}/file
10 rm -rf ${BASE}
11 mkdir -p ${DIR}
12 touch ${DATA}
14 verbose "$tid: ls file"
15 echo "ls -l ${DIR}/fil*" | ${SFTP} -P ${SFTPSERVER} 2>/dev/null | \
16 grep ${DATA} >/dev/null 2>&1
17 if [ $? -ne 0 ]; then
18 fail "globbed ls file failed"
21 verbose "$tid: ls dir"
22 echo "ls -l ${BASE}/d*" | ${SFTP} -P ${SFTPSERVER} 2>/dev/null | \
23 grep file >/dev/null 2>&1
24 if [ $? -ne 0 ]; then
25 fail "globbed ls dir failed"
28 rm -rf ${BASE}