Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!hp4nl!utrcu1!mi.eltn.utwente.nl!klamer From: klamer@mi.eltn.utwente.nl (Klamer Schutte) Newsgroups: comp.os.minix Subject: Re: executable scripts? Message-ID: Date: 2 May 91 08:39:36 GMT References: <1991Apr29.110459.25477@doe.utoronto.ca> Sender: news@utrcu1.UUCP Organization: University of Twente, BSC-El Lines: 19 In <1991Apr29.110459.25477@doe.utoronto.ca> david@doe.utoronto.ca (David Megginson) writes: >I am also interested in executable scripts. Right now, when I make a >script executable, the kernel always seems to presume that it is for >sh. I would like to have executable scripts like > #! /usr/gnu/bin/gawk BSD unix systems recognise the #! as a magic word and execute it with the proper interpreter. Small unix systems does not. However, a proper shell >>should<< look at the first two characters of a script it gets (when the script is executable). Since minix sh does not, i declare it as broken. ;-) Klamer -- Klamer Schutte Faculty of electrical engineering -- University of Twente, The Netherlands klamer@mi.eltn.utwente.nl {backbone}!mcsun!mi.eltn.utwente.nl!klamer