In test_error() use <& to duplicate input descriptors,
correct the order of descriptors in redirection that saves stdin.
This commit is contained in:
parent
642593b012
commit
faa73a6d7e
@ -1,5 +1,5 @@
|
||||
#!/bin/sh -
|
||||
# $NetBSD: sed.test,v 1.3 1997/01/09 20:21:37 tls Exp $
|
||||
# $NetBSD: sed.test,v 1.4 2003/10/27 20:09:49 uwe Exp $
|
||||
#
|
||||
# Copyright (c) 1992 Diomidis Spinellis.
|
||||
# Copyright (c) 1992, 1993
|
||||
@ -34,7 +34,7 @@
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
# from: @(#)sed.test 8.1 (Berkeley) 6/6/93
|
||||
# $NetBSD: sed.test,v 1.3 1997/01/09 20:21:37 tls Exp $
|
||||
# $NetBSD: sed.test,v 1.4 2003/10/27 20:09:49 uwe Exp $
|
||||
#
|
||||
|
||||
# sed Regression Tests
|
||||
@ -513,7 +513,7 @@ u2/g' lines1
|
||||
|
||||
test_error()
|
||||
{
|
||||
exec 0>&3 4>&1 5>&2
|
||||
exec 3<&0 4>&1 5>&2
|
||||
exec 0</dev/null
|
||||
exec 2>&1
|
||||
set -x
|
||||
@ -548,7 +548,7 @@ test_error()
|
||||
$TEST '!' && exit 1
|
||||
$TEST supercalifrangolisticexprialidociussupercalifrangolisticexcius
|
||||
set +x
|
||||
exec 0>&3 1>&4 2>&5
|
||||
exec 0<&3 1>&4 2>&5
|
||||
}
|
||||
|
||||
main
|
||||
|
Loading…
Reference in New Issue
Block a user