summaryrefslogtreecommitdiff
path: root/regress/bin
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2017-07-05 19:27:27 +0000
committeranton <anton@cvs.openbsd.org>2017-07-05 19:27:27 +0000
commited9475f783c950ccfd22444d38caea20c3a187e8 (patch)
treebd8a4e556181a734a744a0dff4e5048322b6c7cc /regress/bin
parentec8ec5d1571e0aab0c489c0f85cd7bfbfbf12571 (diff)
Revert previously added tests for file completion that are currently failing.
Prodded by bluhm@
Diffstat (limited to 'regress/bin')
-rw-r--r--regress/bin/ksh/edit/emacs.sh19
-rw-r--r--regress/bin/ksh/edit/subr.sh8
2 files changed, 1 insertions, 26 deletions
diff --git a/regress/bin/ksh/edit/emacs.sh b/regress/bin/ksh/edit/emacs.sh
index 3f88f8f7ebf..60dbbce9457 100644
--- a/regress/bin/ksh/edit/emacs.sh
+++ b/regress/bin/ksh/edit/emacs.sh
@@ -19,12 +19,8 @@ set -e
. "${1:-.}/subr.sh"
-tmp=$(mktemp -d)
-trap 'rm -r $tmp' 0
->$tmp/.profile
-
EDITOR=
-ENV=$tmp/.profile
+ENV=
HISTFILE=
MAIL=
MALLOC_OPTIONS=S
@@ -95,16 +91,3 @@ testseq "z\0002\0364\0277\0277\0277" \
# insertion of unmatched meta sequence
testseq "z\0002\0033[3z" " $ z\b\0007"
-
-# file completion
-echo "cd $tmp" >$tmp/.profile
-mkdir -p \
- $tmp/a/a{1,2} $tmp/b\ b/b{1,2} $tmp/\(ccc\)/c{1,2} $tmp/\(d\ d\)/d{1,2}
-testseq "cd a/\t" \
- " $ cd a/\b\b \b\b\r $ cd a/a$(genseq 70 " " "\b")\r $ cd a/a \b"
-testseq "cd b\ b/\t" \
- " $ cd b\ b/$(genseq 5 "\b" " " "\b")\r $ cd b\ b/b$(genseq 67 " " "\b")\r $ cd b\ b/b \b"
-testseq "cd \(ccc\)/\t" \
- " $ cd \(ccc\)/$(genseq 8 "\b" " " "\b")\r $ cd \(ccc\)/c$(genseq 64 " " "\b")\r $ cd \(ccc\)/c \b"
-testseq "cd \(d\ d\)/\t" \
- " $ cd \(d\ d\)/$(genseq 9 "\b" " " "\b")\r $ cd \(d\ d\)/d$(genseq 63 " " "\b")\r $ cd \(d\ d\)/d \b"
diff --git a/regress/bin/ksh/edit/subr.sh b/regress/bin/ksh/edit/subr.sh
index 1b29582282d..b8cd0a6e897 100644
--- a/regress/bin/ksh/edit/subr.sh
+++ b/regress/bin/ksh/edit/subr.sh
@@ -13,14 +13,6 @@
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-genseq() {
- n=$1
- while [ $# -ge 1 ]; do
- shift
- jot -n -b "$1" -s '' "$n"
- done
-}
-
testseq() {
stdin=$1
exp=$(echo "$2")