summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-12-19 21:07:32 +0000
committerJim Meyering <jim@meyering.net>1998-12-19 21:07:32 +0000
commit12838cec9b7518161ef4d02865dc9e0bad6b108e (patch)
tree4bc5ae0785c9e75e1a55942215fe55ddeed55896
parentb5bfb1d3998ef7567bbd450a9eb0eb95446f84e9 (diff)
downloadcoreutils-12838cec9b7518161ef4d02865dc9e0bad6b108e.tar.xz
remove .saved-state
-rwxr-xr-xtests/stty/basic-13
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/stty/basic-1 b/tests/stty/basic-1
index 06f87959b..753440f13 100755
--- a/tests/stty/basic-1
+++ b/tests/stty/basic-1
@@ -24,7 +24,8 @@ REV_cbreak=1 REV_decctlq=1 REV_tabs=1 REV_lcase=1 REV_LCASE=1
saved_state=.saved-state
$STTY --save > $saved_state || exit 1
-trap "status=$?; $STTY `cat $saved_state`; exit $status" 0 1 2 3 15
+trap "status=$?; $STTY `cat $saved_state`; rm -f $saved_state; exit $status" \
+ 0 1 2 3 15
$STTY `cat $saved_state` || exit 1
# Build a list of all boolean options stty accepts on this system.