Lines Matching +full:- +full:g +full:-
1 # $OpenBSD: sftp-glob.sh,v 1.4 2009/08/13 01:11:55 djm Exp $
19 printf "ls -l %s" "${target}" | \
20 ${SFTP} -b - -D ${SFTPSERVER} 2>/dev/null | \
21 grep -v "^sftp>" > ${RESULTS}
22 if [ $? -ne 0 ]; then
36 rm -f ${RESULTS}
44 GLOB1="${DIR}/g-wild*"
45 GLOB2="${DIR}/g-wildx"
46 QUOTE="${DIR}/g-quote\""
47 SLASH="${DIR}/g-sl\\ash"
48 ESLASH="${DIR}/g-slash\\"
49 QSLASH="${DIR}/g-qs\\\""
50 SPACE="${DIR}/g-q space"
52 rm -rf ${BASE}
53 mkdir -p ${DIR}
60 sftp_ls "${DIR}/g-wild\"*\"" "quoted glob" "g-wild*" "g-wildx"
61 sftp_ls "${DIR}/g-wild\*" "escaped glob" "g-wild*" "g-wildx"
62 sftp_ls "${DIR}/g-quote\\\"" "escaped quote" "g-quote\"" ""
63 sftp_ls "\"${DIR}/g-quote\\\"\"" "quoted quote" "g-quote\"" ""
64 sftp_ls "'${DIR}/g-quote\"'" "single-quoted quote" "g-quote\"" ""
65 sftp_ls "${DIR}/g-q\\ space" "escaped space" "g-q space" ""
66 sftp_ls "'${DIR}/g-q space'" "quoted space" "g-q space" ""
67 sftp_ls "${DIR}/g-sl\\\\ash" "escaped slash" "g-sl\\ash" "" "$nobs"
68 sftp_ls "'${DIR}/g-sl\\\\ash'" "quoted slash" "g-sl\\ash" "" "$nobs"
69 sftp_ls "${DIR}/g-slash\\\\" "escaped slash at EOL" "g-slash\\" "" "$nobs"
70 sftp_ls "'${DIR}/g-slash\\\\'" "quoted slash at EOL" "g-slash\\" "" "$nobs"
71 sftp_ls "${DIR}/g-qs\\\\\\\"" "escaped slash+quote" "g-qs\\\"" "" "$nobs"
72 sftp_ls "'${DIR}/g-qs\\\\\"'" "quoted slash+quote" "g-qs\\\"" "" "$nobs"
74 rm -rf ${BASE}