From: Yukihiro Matsumoto Date: 2007-12-24T10:06:39+09:00 Subject: Re: 1.9 problem with function *args parameters. Hi, In message "Re: 1.9 problem with function *args parameters." on Mon, 24 Dec 2007 06:50:09 +0900, Gonzalo Garramu�o writes: |def cp_r(src, dest, *opts) | FileUtils.cp_r(src, dest, :verbose => true, *opts) rescue nil |end | |chokes 1.9 with: | |./create_symlinks.rb:122: syntax error, unexpected tSTAR | FileUtils.cp_r(src, dest, :verbose => true, *opts) rescue nil | |How can I make the code work for 1.8 and 1.9? Or is this a 1.9 bug? Try explicit hash like: > FileUtils.cp_r(src, dest, {:verbose => true}, *opts) rescue nil 1.9 only allows hash without braces at the very last of the arguments. matz.