Am 19.11.2010 15:22, schrieb Martin Gregorie:
On Fri, 19 Nov 2010 01:43:28 +0100, Alexander Kapps wrote:

What difference does it make? Is 'print "Hello"' a program or a script?
Are you saying, that it depends on whether you have to manually call
some compiler?

Thats the way the term 'script' is usually used in the UNIX/Linux world.

In that environment you'd call awk and Perl scripting languages but C and
Java are known as compiled languages. The size of the source isn't
relevant: if you can mark a source file as executable and simply run it
its a 'script' while if it needs a separate preparatory step to generate
a separate executable its just a source file for a compiled language.

The distinction doesn't seem to be used in a Windows environment. Indeed,
it doesn't make sense there since executables are limited to .BAR or .CMD
files, which are directly interpreted by the command processor, and .EXE
or .COM files, which must be compiled before they can be run. AFAIK
there's no way you can mark anything else, such as an awk, Perl or Python
source file, as executable since there is no 'executable' attribute in
any Windows filing system.


Not in the file system,
but in the environment it is definitely possible.
One might try http://www.google.de/search?q=pathext
or just have a look at http://wiki.tcl.tk/1785
(the respective filetype has to be associated with
it's interpreter however for this method to work.)

Josef


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to