From owner-freebsd-tcltk@FreeBSD.ORG Sun Nov 2 18:42:24 2014 Return-Path: Delivered-To: freebsd-tcltk@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 46197C53 for ; Sun, 2 Nov 2014 18:42:24 +0000 (UTC) Received: from mail-lb0-x22f.google.com (mail-lb0-x22f.google.com [IPv6:2a00:1450:4010:c04::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BA2D13EA for ; Sun, 2 Nov 2014 18:42:23 +0000 (UTC) Received: by mail-lb0-f175.google.com with SMTP id n15so316915lbi.20 for ; Sun, 02 Nov 2014 10:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=ctuoJaDboZbTluCjkMCp5N1+rXQqOPIevBLoqGkD7yE=; b=NNwl5hxe4OErSyclKCjygFO89SF5zyC3voKo+kXTGAuzYCO0OJ+5PweVxov1/tk0eQ veWgK6adrRxIBvMaYSm0OScDi4i9mo6qp4i/lzcJYSkf04eCeBaokz0pCzBzYedar4xY wYBPj2+KjlWoeXxppUQvpUF/pGmvUKUAzzbhOl5nOZmpvroiIfSDul2JxgmMQ7JyCeLK KwVDQx/nS0N5zzytO1yzvD6I+xx/VcabaH6X3R5RUGwGzPofdaM0/JX2dBmaghQzcVi4 x++T+ToTJX/2tKxq3vIFjskXwvIrdHHolyzSrQPUd87dRcfdQurVIVRxsw4mQXqZYF1u 8xhw== X-Received: by 10.152.19.9 with SMTP id a9mr45142005lae.41.1414953741231; Sun, 02 Nov 2014 10:42:21 -0800 (PST) Received: from linux6.9bf016 (53-47-135-95.pool.ukrtel.net. [95.135.47.53]) by mx.google.com with ESMTPSA id h2sm4530052laa.17.2014.11.02.10.42.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Nov 2014 10:42:20 -0800 (PST) Received: from linux6.9bf016 (localhost [127.0.0.1]) by linux6.9bf016 (8.14.9/8.14.9) with ESMTP id sA2IgIR6006922 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sun, 2 Nov 2014 20:42:18 +0200 Received: (from alex@localhost) by linux6.9bf016 (8.14.9/8.14.9/Submit) id sA2IgItM006921 for freebsd-tcltk@freebsd.org; Sun, 2 Nov 2014 20:42:18 +0200 Date: Sun, 2 Nov 2014 20:42:18 +0200 From: alexander.gromnitsky@gmail.com To: freebsd-tcltk@freebsd.org Subject: Re: tcl-wrapper & shc Message-ID: <20141102184218.GB6382@linux6.9bf016> Mail-Followup-To: freebsd-tcltk@freebsd.org References: <20141030070730.GA1568@linux6.9bf016> <20141102171539.GA1554@ptrcrt.ch> <20141102173512.GB1568@linux6.9bf016> <20141102174408.GB1554@ptrcrt.ch> <20141102175519.GA6382@linux6.9bf016> <20141102182547.GC1554@ptrcrt.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141102182547.GC1554@ptrcrt.ch> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-tcltk@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD-specific Tcl/Tk discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2014 18:42:24 -0000 Sun Nov 02 2014 19:25:48 +0100, Pietro Cerutti wrote: > On 2014-Nov-02, 19:55, alexander.gromnitsky@gmail.com wrote: >> Sun Nov 02 2014 18:44:08 +0100, Pietro Cerutti wrote: > >> Does any of the following work? >> > >> $ tclsh foo >> >> It does. > You mean, the compiled version (before you changed the Makefile) works > too? Yes, the orig version installed via pkg. > I guess something's weird with using /usr/bin/env, No, /usr/bin/env is fine. $ cat foo2 #!/bin/sh # the next line restarts using tclsh \ exec tclsh "$0" ${1+"$@"} puts "Hello, World!" $ ./foo2 % The same strange result. If I change 'exec tclsh' to 'exec tclsh8.6', the script works as expected.