Permalink
Browse files

Move 'set -o vi' test to sh-options.test.sh

  • Loading branch information...
Andy Chu
Andy Chu committed May 27, 2018
1 parent c16d264 commit c1ad118a3beba52580e3f55527ab0913676cdb41
Showing with 13 additions and 17 deletions.
  1. +3 −17 spec/builtins.test.sh
  2. +10 −0 spec/sh-options.test.sh
View
@@ -74,7 +74,7 @@ cd -- /
echo $PWD
# stdout: /
### cd to non-symlink with `-P`
### cd to non-symlink with -P
targ=$TMP/cd-symtarget
lnk=$TMP/cd-symlink
mkdir -p $targ
@@ -98,7 +98,7 @@ rmdir $targ
rm $lnk
# stdout: OK
### cd to symlink with `-L`
### cd to symlink with -L
targ=$TMP/cd-symtarget
lnk=$TMP/cd-symlink
mkdir -p $targ
@@ -110,7 +110,7 @@ rmdir $targ
rm $lnk
# stdout: OK
### cd to symlink with `-P`
### cd to symlink with -P
targ=$TMP/cd-symtarget
lnk=$TMP/cd-symlink
mkdir -p $targ
@@ -136,20 +136,6 @@ eval "a=3"
echo $a
# stdout: 3
### Set readline mode
set -o emacs
echo $?
set -o vi
echo $?
## STDOUT:
0
0
## END
### Set invalid option
set -o invalid 2>/dev/null
## status: 2
# OK mksh status: 1
### Source
lib=$TMP/spec-test-lib.sh
echo 'LIBVAR=libvar' > $lib
View
@@ -89,6 +89,16 @@ echo done
# stdout: a b c
# status: 1
### set -o vi/emacs
set -o vi
echo $?
set -o emacs
echo $?
## STDOUT:
0
0
## END
### nounset
echo "[$unset]"
set -o nounset

0 comments on commit c1ad118

Please sign in to comment.