From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24889 invoked by alias); 25 Dec 2013 15:47:45 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18254 Received: (qmail 21869 invoked from network); 25 Dec 2013 15:47:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Zhdb0zTa78qJ2PXQzduDkZ+E/x1SmkAK/lgACjDIeUA=; b=O7ljY6THHhT5DuShyOLEmdSIxkvPc1XBX7+HkHqhwD2CPW5yCzc8RSOe8vywc3PY9/ E9n5x0XEHWD04IQQQRglNfn90JofucBg/oNQouuX9/g+8MpQMXA521/l6vKI9ts0tau+ WjxALNJ6FZ2G8dbETCFyo3/vyE/8SNKdlWNqSsr0GoyU+5l5goDrRshgqWuRG9Zq2WRH 0AlXDz4pvzRf4CELhghh6JERsfkmIUlKtxO+zPYk9mRWkCL6JJOqbdYKfZEwWfNOPfll CEQbq5V80qw5dnN68wVx1jesB6wM7HZ+nwQkZ7ufdaZ0/JzZqhb987a8hO7Z4/js3zeE 1yHQ== X-Gm-Message-State: ALoCoQm8XZS+l8kr6wjkxygwAXJ0VpO7OEvjAw/zhsjfYwwGQ9KL6UU2bEB8YuR/TxqoVFOiVrEq MIME-Version: 1.0 X-Received: by 10.66.179.204 with SMTP id di12mr3390460pac.155.1387986446584; Wed, 25 Dec 2013 07:47:26 -0800 (PST) In-Reply-To: References: Date: Wed, 25 Dec 2013 07:47:26 -0800 Message-ID: Subject: Re: Problem with env? From: Kurtis Rader To: =?UTF-8?B?xLBzbWFpbCBEw7ZubWV6?= Cc: Zsh Users Content-Type: multipart/alternative; boundary=047d7bea3d0e1a24da04ee5dc78d --047d7bea3d0e1a24da04ee5dc78d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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, =C4=B0smail D=C3=B6nmez = 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? > --=20 Kurtis Rader Caretaker of the exceptional canines Junior and Hank --047d7bea3d0e1a24da04ee5dc78d--