Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: How to compile bash from an editor?

  1. #11
    Join Date
    Nov 2008
    Beans
    4

    Smile Re: How to compile bash from an editor?

    Quote Originally Posted by PmDematagoda View Post
    You can't compile shell scripts. You can execute them by doing:-
    Code:
    ./name-of-script.sh
    you may first want to make them executable with:-
    Code:
    chmod +x name-of-script.sh
    thanks for your message, that's what I was looking for
    and it works

  2. #12
    Join Date
    Jan 2013
    Beans
    1

    Thumbs down Re: How to compile bash from an editor?

    Quote Originally Posted by tennis_girl View Post
    thanks for your message, that's what I was looking for
    and it works

    why you not use SH Compiler like "SHC"

    you just need to do "shc -f file.sh" then you will get 2 file "file.sh.c" & "file.sh.c.x"

    you can use file.sh.c as executor, you just need to double click on the icon of "file.sh.c"

    may can help you...

  3. #13
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,657
    Distro
    Ubuntu

    Re: How to compile bash from an editor?

    please don't bump old threads to the top.

    Closed.

Page 2 of 2 FirstFirst 12

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
  •