From: Hal Fulton Date: 2006-08-15T09:24:35+09:00 Subject: Re: Rake: How to *stop* if a shell command fails??? Eric Armstrong wrote: > There's one line in there that's driving me nuts. > > nobu@ruby-lang.org wrote: > >> >> def adventurous! >> verbose, $VERBOSE = $VERBOSE, nil > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > >> yield >> ensure >> $VERBOSE = verbose >> end >> >> adventurous! {system(cmd)} >> > What the heck is that line doing?? Haha... it's a Perl/Ruby idiom... x, y = y, x # swap values of x and y So he was just saving off $VERBOSE so he could restore it at the end. Hal