diff options
Diffstat (limited to 'regress')
-rw-r--r-- | regress/bin/ksh/edit/emacs.sh | 19 | ||||
-rw-r--r-- | regress/bin/ksh/edit/subr.sh | 8 |
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") |