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> In-Reply-To: <20141102182547.GC1554@ptrcrt.ch> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141102184218.GB6382>
