I demand that Jonas Smedegaard may or may not have written... > On 26-03-2005 23:43, Jonas Smedegaard wrote: [snip patch] >> I really don't like diabling the "set -e" completely. Is the problem not >> with the grep lines only?
>> To keep the code compact I'd just append this to the grep lines: >> || true if [ $? \< 2 ] > Or even better (in case "true if" turns out to be a bashism): No; it just doesn't work - true ignores its parameters. > || [ $? \< 2 ] # catch grep failures That seems to work, but you need -lt (numeric), not < (string). -- | Darren Salt | nr. Ashington, | linux (or ds) at | woody, sarge, | Northumberland | youmustbejoking | RISC OS | Toon Army | demon co uk | Oh, sarge too... Borg mailreader: Taglines are irrelevant. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]