]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - include/edit_cfg.sh
ncurses 6.3 - patch 20220205
[ncurses.git] / include / edit_cfg.sh
index f7f1795654f24fd3a2b2f8471f0ab61f333653cb..ed098a8aab27aeb8985f656af4491b9d86f99a68 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
-# $Id: edit_cfg.sh,v 1.14 2020/02/02 23:34:34 tom Exp $
+# $Id: edit_cfg.sh,v 1.15 2022/02/05 20:38:40 tom Exp $
 ##############################################################################
-# Copyright 2020 Thomas E. Dickey                                            #
+# Copyright 2020,2022 Thomas E. Dickey                                       #
 # Copyright 1998-2001,2017 Free Software Foundation, Inc.                    #
 #                                                                            #
 # Permission is hereby granted, free of charge, to any person obtaining a    #
@@ -39,7 +39,8 @@
 #
 BAK=save$$
 TMP=edit$$
-trap "rm -f $BAK $TMP" 0 1 2 3 15
+trap "rm -f $BAK $TMP; exit 1" 1 2 3 15
+trap "rm -f $BAK $TMP" 0
 for name in \
        HAVE_TCGETATTR \
        HAVE_TERMIOS_H \