zsh-workers
 help / color / mirror / code / Atom feed
* shebang problem
@ 2006-11-25 14:06 Une Bévue
  2006-11-25 19:31 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Une Bévue @ 2006-11-25 14:06 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-25 20:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-25 14:06 shebang problem Une Bévue
2006-11-25 19:31 ` Bart Schaefer
2006-11-25 20:17   ` Une Bévue

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).