busybox/shell/hush_test/hush-trap/exit.tests

4 lines
94 B
Plaintext
Raw Normal View History

hush -c 'trap "echo cow" 0'
hush -c 'trap "echo moo" EXIT'
hush -c 'trap "echo no" 0; trap 0'