Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70509
| Date | 2014-04-22 08:22 -0500 |
|---|---|
| From | Tim Chase <python.list@tim.thechases.com> |
| Subject | Re: Strange syntax error, occurs only when script is executed directly |
| References | <mailman.9431.1398162667.18130.python-list@python.org> <5356625a$0$29993$c3e8da3$5496439d@news.astraweb.com> <CAPTjJmo8_USjq+_rr3xMN-Uv7Si_1BTGLTVZfS+Phf_tJs1y+w@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.9441.1398172986.18130.python-list@python.org> (permalink) |
On 2014-04-22 22:52, Chris Angelico wrote: > I'm pretty sure the POSIX standard stipulates that a space there is > optional. Should be no difference between "#!/" and "#! /" on any > compliant OS. (But I can't right now find a citation for that, so I > may be wrong.) I wondered this too, so went researching and found this: http://en.wikipedia.org/wiki/Shebang_%28Unix%29#Magic_number which said that there was actually some contention that the space was required, but that the specs state that both with-and-without are permissible. -tkc
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Strange syntax error, occurs only when script is executed directly Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2014-04-22 12:29 +0200
Re: Strange syntax error, occurs only when script is executed directly Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-04-22 12:36 +0000
Re: Strange syntax error, occurs only when script is executed directly Chris Angelico <rosuav@gmail.com> - 2014-04-22 22:52 +1000
Re: Strange syntax error, occurs only when script is executed directly Andrew Cooper <root@127.0.0.1> - 2014-04-23 02:28 +0100
Re: Strange syntax error, occurs only when script is executed directly Tim Chase <python.list@tim.thechases.com> - 2014-04-22 08:22 -0500
Re: Strange syntax error, occurs only when script is executed directly Chris Angelico <rosuav@gmail.com> - 2014-04-22 23:26 +1000
csiph-web