From cd87b1419bb75f46cf3c742c846fb01cd2f44ca5 Mon Sep 17 00:00:00 2001 From: anton Date: Thu, 6 Jul 2017 06:33:42 +0000 Subject: [PATCH] Add tests for all features of file completion in csh. --- regress/bin/csh/filec.sh | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/regress/bin/csh/filec.sh b/regress/bin/csh/filec.sh index 338a91762b7..6a1dca2e89e 100644 --- a/regress/bin/csh/filec.sh +++ b/regress/bin/csh/filec.sh @@ -24,13 +24,13 @@ testseq() { echo input: echo ">>>${stdin}<<<" - echo -n "$stdin" | hexdump -C + echo -n "$stdin" | hexdump -Cv echo expected: echo ">>>${exp}<<<" - echo -n "$exp" | hexdump -C + echo -n "$exp" | hexdump -Cv echo actual: echo ">>>${act}<<<" - echo -n "$act" | hexdump -C + echo -n "$act" | hexdump -Cv return 1 } @@ -38,9 +38,10 @@ testseq() { # Create a fake HOME with a minimal .cshrc and a few files used for completion. tmp=$(mktemp -d) trap 'rm -r $tmp' 0 -touch "${tmp}/complete" "${tmp}/incomplete.1" "${tmp}/incomplete.2" -cat >"${tmp}/.cshrc" <$tmp/.cshrc <