Re: Error handling in bash scripts

From: Wilson (mr.sean.wilson_at_gmail.com)
Date: 02/02/05

  • Next message: Dances With Crows: "Re: Linux on Laptop?"
    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


  • Next message: Dances With Crows: "Re: Linux on Laptop?"