From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28323 invoked from network); 25 Nov 2006 14:06:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Nov 2006 14:06:34 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 69550 invoked from network); 25 Nov 2006 14:06:26 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Nov 2006 14:06:26 -0000 Received: (qmail 5890 invoked by alias); 25 Nov 2006 14:06:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23011 Received: (qmail 5880 invoked from network); 25 Nov 2006 14:06:22 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Nov 2006 14:06:22 -0000 Received: (qmail 69169 invoked from network); 25 Nov 2006 14:06:22 -0000 Received: from smtp4-g19.free.fr (212.27.42.30) by a.mx.sunsite.dk with SMTP; 25 Nov 2006 14:06:19 -0000 Received: from [192.168.3.1] (nor75-8-81-57-96-20.fbx.proxad.net [81.57.96.20]) by smtp4-g19.free.fr (Postfix) with ESMTP id 8475C8973 for ; Sat, 25 Nov 2006 15:06:18 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: <48AA2667-A59C-4B22-AC23-4CCF62857FE6@free.fr> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: zsh-workers@sunsite.dk From: =?ISO-8859-1?Q?Une_B=E9vue?= Subject: shebang problem Date: Sat, 25 Nov 2006 15:06:17 +0100 X-Mailer: Apple Mail (2.752.2) Hey all, as a shell i'm using Zsh (4.3.2) , but i'm using as script language Ruby (1.8.5) over Mac OS X the latest. for ruby files i'm using this shebang : #!/usr/bin/env ruby then, if i do : $ /opt/local/bin/ruby my_script.rb no prob at all because ruby takes control of the script BUT if i do : $ ./my_script.rb zsh complains of syntax error because it attempt to read to ruby file, which, obviously, doesn't have the same syntax as the shell. this morning was the first time i encountered such a prob. someone running over a linux box (i don't know it's shell) said it's a known prob at least sicnce jul 2003. does someone knows a workaround ? the prob for me : on my box i'm using a ruby installed under /opt (MacPort) and my users are using a default installed ruby under /usr that's the reason for this shebang that way i was believing the shell would address the right ruby... did you ear before about such a prob ? a workaound ? Yvon