[Tutor] Is there space a between "#!" and "/usr/bin/env python" ?
Steven D'Aprano
steve at pearwood.info
Wed May 2 02:27:46 CEST 2012
Alan Gauld wrote:
> On 02/05/12 01:02, Santosh Kumar wrote:
>> Its getting complicated now. Will it effect or not?
>> Give me one word answer with one line description.
>
> impossible.
>
> It depends what OS you are on, but you didn't say.
>
> If its Windows the line makes no difference.
On Windows, the presence or absence of a space will make no difference,
because it's just a comment.
> If it's Unix it depends on the variety, but usually no space is needed.
As far as I know, on any Unix, Linux or other POSIX system, the presence or
absence of a space between the #! and the path is irrelevant. I suppose it is
possible that ancient Unixes from 1970 or something might not like the space,
but that would surprise me.
--
Steven
More information about the Tutor
mailing list