From: "Choi, Junegunn" Date: 2009-02-18T16:43:51+09:00 Subject: Re: bang is not work!! And, you may end up executing the possibly malicious script instead of the original ls when you carelessly type 'ls'. Regarding the she-bang line, I prefer to write '#!/usr/bin/env ruby' rather than to hard-code the path of a ruby executable. 2009/2/18 7stud -- : > Bertram Scharpf wrote: >> >> This is a security feature of your OS/distribution and not about >> Ruby. >> >> Suppose you say something like >> >> $ export PATH=.:"$PATH" >> >> and the intruder would place a script named "ls" in the current >> directory... >> > > ..and? > > -- > Posted via http://www.ruby-forum.com/. > > -- junegunn.