diff options
Diffstat (limited to 'Test')
-rw-r--r-- | Test/A04redirect.ztst | 11 | ||||
-rw-r--r-- | Test/D07multibyte.ztst | 2 |
2 files changed, 9 insertions, 4 deletions
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst index 06c380bdb..104ed433e 100644 --- a/Test/A04redirect.ztst +++ b/Test/A04redirect.ztst @@ -240,10 +240,15 @@ <input >input + myfd= exec {myfd}>logfile - print This is my logfile. >&$myfd - print Examining contents of logfile... - cat logfile + if [[ -z $myfd ]]; then + print "Ooops, failed to set myfd to a file descriptor." >&2 + else + print This is my logfile. >&$myfd + print Examining contents of logfile... + cat logfile + fi 0:Using {fdvar}> syntax to open a new file descriptor >Examining contents of logfile... >This is my logfile. diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst index 85aa24ade..20c967540 100644 --- a/Test/D07multibyte.ztst +++ b/Test/D07multibyte.ztst @@ -12,7 +12,7 @@ fi done if [[ -z $mb_ok ]]; then - ZTST_unimplemented="no UTF-8 locale or multibyte mode is not implemnted" + ZTST_unimplemented="no UTF-8 locale or multibyte mode is not implemented" else print Testing multibyte with locale $LANG >&8 fi |