From: Kurtis Rader <krader@skepticism.us>
To: "İsmail Dönmez" <ismail@donmez.ws>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Problem with env?
Date: Wed, 25 Dec 2013 07:47:26 -0800 [thread overview]
Message-ID: <CABx2=D8eVcuXYGQnShRuUnKU8oF043kbjdP1-emUbPsL=xUdbw@mail.gmail.com> (raw)
In-Reply-To: <CAJ1KOAjVqdCirChQqTJ6V5bXL3PNc78DEmRo=wo_ou-MMU9ucQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]
I don't see how it can have anything to do with zsh per se. The kernel is
responsible for interpreting the #! line and running the /usr/bin/env
program which in turn just uses the PATH env var to find the named binary.
So what does the output of these commands look like for each environment:
echo $PATH
which python3
On Wed, Dec 25, 2013 at 1:56 AM, İsmail Dönmez <ismail@donmez.ws> wrote:
> 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?
>
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
prev parent reply other threads:[~2013-12-25 15:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-25 9:56 İsmail Dönmez
2013-12-25 15:47 ` Kurtis Rader [this message]
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='CABx2=D8eVcuXYGQnShRuUnKU8oF043kbjdP1-emUbPsL=xUdbw@mail.gmail.com' \
--to=krader@skepticism.us \
--cc=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).