Trap statement - Linux Shell Scripting Tutorial - A Beginner's handbook

Trap statement - Linux Shell Scripting Tutorial - A Beginner's handbook

瀏覽:1008
日期:2025-06-14
Sample outputs: This is a test Exit 0 signal detected... The first line sets a trap when script tries to exit with status 0. Then script exits the shell with 0, which would result in running echo command. Try the following example at a shell prompt (make ...看更多