Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Problem with env?



Hi,

I have a very simple script:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#

import sys
print("%s.%s.%s" % (sys.version_info.major,
                    sys.version_info.minor,
                    sys.version_info.micro))

This is supposed to run in  python3. With zsh 5.0.2 (x86_64-suse-linux-gnu):

[~]> ./test.py
2.7.5

So it runs python instead of python3. With bash 4.2:

[~]> ./test.py
3.3.2

So obviously something going on with zsh or my zsh setup. Any ideas?



Messages sorted by: Reverse Date, Date, Thread, Author