On Mon, Mar 08 2004, Simon Marlow wrote:
> However, I just tried it on a recent Linux (RedHat 9) and it seems to
> accept nested #! scripts.

It doesn't work for me though (it tries to run the first script (the
Haskell module) with the interpreter for the second script (bash).
Anyway, one cannot expect it to work for everyone (esp. since shells
differ and OS:es too).

However it should be quite simple to include a program similar to the
attached one to provide "runhugs" capability.

/Hampus

-- 
Homepage: http://www.dtek.chalmers.se/~d00ram
E-mail: [EMAIL PROTECTED]

"Det �r aldrig f�rsent att ge upp"
#include <cstdlib>
#include <string>

int main(int argc, char **argv)
{
    if (argc != 3)
        std::exit(EXIT_FAILURE);

    std::string cmd(argv[1]);

    cmd += " -e Main.main ";
    cmd += argv[2];

    std::system(cmd.c_str());

    return 0;
}
_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to