|
From: | Freddy Vulto |
Subject: | Re: Migrating from tcsh to bash (issues) |
Date: | Tue, 3 Feb 2009 12:32:37 -0800 (PST) |
User-agent: | G2/1.0 |
My mistake, the 'trap' of (5) needs to be defined within single quotes to prevent the $? from expanding too soon: $ trap 'echo Exit $?' ERR Freddy Vulto
[Prev in Thread] | Current Thread | [Next in Thread] |