On Friday 05 October 2007, Heikki Johannes Junes wrote:

> I was wondering why the line
>
>   #!/bin/bash
>
> did not override the invoking shell (dash, sh or bash) when running the
> command :

It looks like the invoking shell is not very smart.  If I try to run with

  dash ./messages.sh

I get the same bad result you did, but if I run it with perl

  perl ./messages.sh

it works fine, even though the script isn't even perl.  (I tried using the 
perl command to invoke some Python scripts too, and that also worked.  Perl 
is smart.)

Python doesn't know what to do with the #! either.  (What is that #! called 
again?  It has a weird, special name, and I can't think of it.)  If I try 
running these with the python command, it fails spectacularly.  (No great 
shock.)

Anyway, it looks like dash is a stupid shell, but if you're running a smarter 
shell, eg. bash, and you simply 

  cd po
  ./messages.sh

then everything works beautifully with minimal effort.  I 
have /bin/sh -> /bin/dash on this system (blah) and running it straight up 
with no specified interpreter just ran to completion with no errors.

So there again, the bottom line recommended formula is:

  svn update
  cd po/
  ./messages.sh
  kbabel [your_language_code].po
  cd ..
  sudo make install
  rosegarden

-- 
D. Michael McIntyre 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to