Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

shell scripting

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:
trap "rm $TMP; exit 1" 1 2 15

Name: Anonymous 2010-01-26 6:12

[underlined]power[/underlined] bump

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List