Name: Anonymous 2010-01-26 5:45
sup
im using 'exit 1' in a 'case' construct.
im also using 'trap' to delete some tmp data.
the problem is, that 'trap' isn't triggered by 'exit 1'. trap works though if i send ctrl-z.
why is that?
btw, my trap:
im using 'exit 1' in a 'case' construct.
im also using 'trap' to delete some tmp data.
the problem is, that 'trap' isn't triggered by 'exit 1'. trap works though if i send ctrl-z.
why is that?
btw, my trap:
trap "rm $TMP; exit 1" 1 2 15