[Rubygems-developers] Bug: ^M in shebang line of application stub

Gavin Sinclair gsinclair at soyabean.com.au
Sat Mar 12 18:41:30 EST 2005


Gem-installing instiki on a UML virtual server (uname output below), I
was unable to run the resulting application because it stuffed up the
shebang line.

`uname -a`:
  Linux server.pointstorm.com 2.4.20-020stab009.23.777-enterprise #1 SMP Fri Aug 6 10:14:32 MSD 2004 i686 unknown

Shebang line:
  #!/home/gavin/software/bin/ruby^M

On running 'instiki':
  : bad interpreter: No such file or directorye/gavin/software/bin/ruby

On replacing shebang line with '#!xyz' and running 'instiki':
  bash: /home/gavin/software/bin/instiki: xyz: bad interpreter: No such file or directory

So the ^M in the shebang line is stuffing up not only the application,
but the bash error message! :)

Cheers,
Gavin



More information about the Rubygems-developers mailing list