Skip to content

Commit

Permalink
tests/builtin.sh: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
McDutchie committed Sep 22, 2020
1 parent 03cf032 commit e149cf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmd/ksh93/tests/builtins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -857,10 +857,10 @@ unset foo
function test_func
{
readonly foo="bar"
[[ "$foo" = "bar" ]] || err_exit "readonly variable is not assigned a value inside functions"
[[ $foo = "bar" ]]
}
test_func
)
) || err_exit "readonly variable is not assigned a value inside functions"
# ======
# Test the output of nonstandard date formats with 'printf %T'
Expand Down Expand Up @@ -981,7 +981,7 @@ EOF
# Builtins should handle unrecognized options correctly
while IFS= read -r bltin <&3
do case $bltin in
echo | test | true | false | \[ | : | getconf | */getconf | uname | */uname)
echo | test | true | false | \[ | : | getconf | */getconf | uname | */uname | login | newgrp)
continue ;;
/*/*) expect="Usage: ${bltin##*/} "
actual=$({ PATH=${bltin%/*}; "${bltin##*/}" --this-option-does-not-exist; } 2>&1) ;;
Expand Down

0 comments on commit e149cf4

Please sign in to comment.