zsh-workers
 help / color / mirror / code / Atom feed
From: "Une Bévue" <yt.dev@free.fr>
To: zsh-workers@sunsite.dk
Subject: shebang problem
Date: Sat, 25 Nov 2006 15:06:17 +0100	[thread overview]
Message-ID: <48AA2667-A59C-4B22-AC23-4CCF62857FE6@free.fr> (raw)

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 <the args>

no prob at all because ruby takes control of the script

BUT if i do :

$ ./my_script.rb <the args>

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


             reply	other threads:[~2006-11-25 14:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-25 14:06 Une Bévue [this message]
2006-11-25 19:31 ` Bart Schaefer
2006-11-25 20:17   ` Une Bévue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48AA2667-A59C-4B22-AC23-4CCF62857FE6@free.fr \
    --to=yt.dev@free.fr \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).