Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51323

Re: Python Script Hashplings

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Python Script Hashplings
Date 2013-07-27 08:08 +1000
References <51F12B41.3050004@Gmail.com> <51F12E31.1070502@mrabarnett.plus.com> <51F2517D.2070009@Gmail.com> <51F253BC.1010709@timgolden.me.uk>
Newsgroups comp.lang.python
Message-ID <mailman.5157.1374876519.3114.python-list@python.org> (permalink)

Show all headers | View raw


Tim Golden <mail@timgolden.me.uk> writes:

> Devyn, I'm not a *nix person so someone can point out if I'm wrong,
> but my understanding is that the shebang line (or whatever you want to
> call it) just tells the shell: run this command to run this file. So
> you can put "#!/usr/bin/fish-and-chips" as the first line and it will
> try to run the file using /usr/bin/fish-and-chips.

Close: it's an instruction not to the shell, but to the kernel. The
shell defers any “run the program in this file” to the kernel, and it's
the kernel that pays attention to the file's shebang line.

-- 
 \              “When cryptography is outlawed, bayl bhgynjf jvyy unir |
  `\                                              cevinpl.” —Anonymous |
_o__)                                                                  |
Ben Finney

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python Script Hashplings Ben Finney <ben+python@benfinney.id.au> - 2013-07-27 08:08 +1000

csiph-web