From: Robert Klemme Date: 2008-03-12T02:08:13+09:00 Subject: Re: Return codes 2008/3/11, Peter Hug : > Perfect! Many thanks Tim. Additional note: it is sufficient to throw an exception or not. Ruby will automatically set the exit code appropriately: 18:06:55 /cygdrive/c/SCMws/Tickets/oz-26255_no_txid $ ruby -e '123'; echo $? 0 18:07:03 /cygdrive/c/SCMws/Tickets/oz-26255_no_txid $ ruby -e 'raise "foo"'; echo $? -e:1: foo (RuntimeError) 1 18:07:06 /cygdrive/c/SCMws/Tickets/oz-26255_no_txid $ Kind regards robert -- use.inject do |as, often| as.you_can - without end