Results 1 to 2 of 2

Thread: Compiler for BASH scripts?

  1. #1
    Join Date
    Jun 2006
    Beans
    193
    Distro
    Ubuntu Karmic Koala (testing)

    Compiler for BASH scripts?

    Hi all,

    As my title asks, is there a compiler for BASH scripts? For increasing the speed of one?

    Also, if there were would we see any speed advantage in compiling the main startup scripts?

    Cheers,
    T

  2. #2
    Join Date
    Feb 2007
    Location
    The hills of appalachia
    Beans
    966

    Re: Compiler for BASH scripts?

    There is a compiler, see The Bourne Shell Compiler for The Bourne Shell (also known as sh) which is almost the same thing. It is my understanding bash differs some here and there from sh so this compiler may not work with all scripts without some modification of the script.

    As to system startup, that involves lots of disk I/O and so on, which is pretty much the slowest thing you can do on a computer. Even if the script were much faster , it'd still spend most of its time sleeping. So the speed of bash and the script is unlikely to matter much.
    If you think you're free, there's no escape possible. Ram Dass

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •