From: Michael W Thelen Date: 2003-09-24T08:24:36+09:00 Subject: Re: Article on oreilly.net on how to build Unix tools with Ruby * Gavin Sinclair [2003-09-23 17:16]: > On Wednesday, September 24, 2003, 2:33:01 AM, Paul wrote: > > 3. I wish he'd mentioned the option of using #!/usr/bin/env ruby > > instead of #!/usr/local/bin/ruby. > > Can someone please explain to me what /usr/bin/env/ruby does? Note that there's no slash between "env" and "ruby"... env is a program that lets you run a program in a modified environment, and it's also useful on the shebang line if you don't know the exact location of the interpreter you want to run. It will find the executable in the path before executing it. -- Mike -- Michael W. Thelen Experience is what you get when you don't get what you want. -- Dan Stanford