Re: Error handling in bash scripts
From: Wilson (mr.sean.wilson_at_gmail.com)
Date: 02/02/05
- Previous message: Chris F.A. Johnson: "Re: Error handling in bash scripts"
- In reply to: Chris F.A. Johnson: "Re: Error handling in bash scripts"
- Next in thread: Stephane CHAZELAS: "Re: Error handling in bash scripts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 1 Feb 2005 17:11:18 -0800
Thanks very much for your quick response! I gave it a quick test and it
works perfect. This will output "Error!" at the prompt twice:
$ function error { echo Error!; }
$ trap error DEBUG
$ fogkrpogkrewpo
$ rm file_that_does_not_exist
- Previous message: Chris F.A. Johnson: "Re: Error handling in bash scripts"
- In reply to: Chris F.A. Johnson: "Re: Error handling in bash scripts"
- Next in thread: Stephane CHAZELAS: "Re: Error handling in bash scripts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]