zsh-users
 help / color / mirror / code / Atom feed
From: "İsmail Dönmez" <ismail@donmez.ws>
To: Zsh Users <zsh-users@zsh.org>
Subject: Problem with env?
Date: Wed, 25 Dec 2013 11:56:48 +0200	[thread overview]
Message-ID: <CAJ1KOAjVqdCirChQqTJ6V5bXL3PNc78DEmRo=wo_ou-MMU9ucQ@mail.gmail.com> (raw)

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?


             reply	other threads:[~2013-12-25  9:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-25  9:56 İsmail Dönmez [this message]
2013-12-25 15:47 ` Kurtis Rader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ1KOAjVqdCirChQqTJ6V5bXL3PNc78DEmRo=wo_ou-MMU9ucQ@mail.gmail.com' \
    --to=ismail@donmez.ws \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).