Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Those who can, do; those who can't, simulate.


devel / comp.lang.tcl / tclsh and cygwin (mobaxterm)

SubjectAuthor
* tclsh and cygwin (mobaxterm)pd
+- Re: tclsh and cygwin (mobaxterm)pd
+* Re: tclsh and cygwin (mobaxterm)Rich
|+* Re: tclsh and cygwin (mobaxterm)briang
||`- Re: tclsh and cygwin (mobaxterm)pd
|`- Re: tclsh and cygwin (mobaxterm)Arjen Markus
`* Re: tclsh and cygwin (mobaxterm)Harald Oehlmann
 `* Re: tclsh and cygwin (mobaxterm)pd
  `- Re: tclsh and cygwin (mobaxterm)Arjen Markus

1
tclsh and cygwin (mobaxterm)

<d516815c-9115-41b5-a749-52e2e53581bcn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21606&group=comp.lang.tcl#21606

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:199a:b0:3e2:efb6:9d9e with SMTP id u26-20020a05622a199a00b003e2efb69d9emr3020324qtc.0.1679841785198;
Sun, 26 Mar 2023 07:43:05 -0700 (PDT)
X-Received: by 2002:a05:622a:142:b0:3de:6674:477a with SMTP id
v2-20020a05622a014200b003de6674477amr2991030qtw.9.1679841784950; Sun, 26 Mar
2023 07:43:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sun, 26 Mar 2023 07:43:04 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=139.47.61.113; posting-account=fwjo5QoAAAAcS9TSqEAQL1VEl7b8nCOq
NNTP-Posting-Host: 139.47.61.113
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d516815c-9115-41b5-a749-52e2e53581bcn@googlegroups.com>
Subject: tclsh and cygwin (mobaxterm)
From: eukelade@gmail.com (pd)
Injection-Date: Sun, 26 Mar 2023 14:43:05 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3817
 by: pd - Sun, 26 Mar 2023 14:43 UTC

Hello,

I have a weird behaviour with tclsh in cygwin (mobaxterm) environment and I really doesn't know why so I'd really appreciate any clue.

Scenario:

I've installed magisplat in my windows 10 so I have tclsh available in my path.

When I open a cmd windows shell I can run tclsh and I get a tcl prompt (%) and command echo:

c\:> tclsh
%

% puts "hello"
hello

But when I invoke tclsh from a mobaxterm terminal window I get no prompt and a solid squared cursor ([]):

$ tclsh
[]
puts "hello"
hello
[]

It also seems there's no command echo:

$ tclsh
set h hello
set h
puts "$h"
hello
[]

where it should be:

$ tclsh
% set h hello
hello
% set h
hello
% puts "$h"
hello

Also it seems tclsh is treating paths as windows style:

$ tclsh
puts "[set auto_path]"
C:/Apps/Tcl86/lib/tcl8.6 C:/Apps/Tcl86/lib

when I expect it would use unix like paths

My assumption:

I think this weird behaviour may be related to the fact of using a windows program in a "unix" shell environment (cygwin mobaxterm), the tclsh program cygwin is using is the one installed by magicsplat:

$ which tclsh
/drives/c/Apps/Tcl86/bin/tclsh

And so there's a clash between naming conventions, if I create a tcl file just to require package ticklecharts like:

lappend auto_path "/home/mobaxterm/myDownloads/tcl/ticklecharts-master"
puts "[set auto_path]"
package require ticklecharts

and run it from ticklechars dir:

$ pwd
/home/mobaxterm/myDownloads/tcl/ticklecharts-master
$ tclsh ej.tcl
C:/Apps/Tcl86/lib/tcl8.6 C:/Apps/Tcl86/lib /home/mobaxterm/myDownloads/tcl/ticklecharts-master
can't find package ticklecharts
while executing
"package require ticklecharts"
(file "ej.tcl" line 5)

changing the path to add to auto_path in the file to different values I get:

- with /drives/c/Users/p/Downloads/tcl/ticklecharts-master
$ tclsh ej.tcl
C:/Apps/Tcl86/lib/tcl8.6 C:/Apps/Tcl86/lib /drives/c/Users/p/Downloads/tcl/ticklecharts-master
can't find package ticklecharts
while executing
"package require ticklecharts"
(file "ej.tcl" line 5)

- with current dir (.):
$ tclsh ej.tcl
C:/Apps/Tcl86/lib/tcl8.6 C:/Apps/Tcl86/lib .
html:.\render.html

- with current dir as windows style path:
$ tclsh ej.tcl
C:/Apps/Tcl86/lib/tcl8.6 C:/Apps/Tcl86/lib {C:\Users\p\Downloads\tcl\ticklecharts-master}
html:.\render.html

So it reckonizes windows style paths only

Maybe this is the reason of weird behaviour too, a kind of clash with internal paths or files o even pipes.

Probably the solution is to install tcl from cygwin itself, but I really don't understand why it behaves so weird.

Of course If I execute tclsh from cygwin through cmd.exe everything goes ok:

$ cmd.exe /c tclsh.exe
% set h hello
hello
% set h
hello

Any idea or explanation?

Re: tclsh and cygwin (mobaxterm)

<2897e591-ffd3-4ee6-8def-bdc476ef87ben@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21607&group=comp.lang.tcl#21607

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1884:b0:3df:bda6:6932 with SMTP id v4-20020a05622a188400b003dfbda66932mr3394045qtc.5.1679841996694;
Sun, 26 Mar 2023 07:46:36 -0700 (PDT)
X-Received: by 2002:a05:6214:1863:b0:56e:a7d5:7c75 with SMTP id
eh3-20020a056214186300b0056ea7d57c75mr1287712qvb.3.1679841996494; Sun, 26 Mar
2023 07:46:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sun, 26 Mar 2023 07:46:36 -0700 (PDT)
In-Reply-To: <d516815c-9115-41b5-a749-52e2e53581bcn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=139.47.61.113; posting-account=fwjo5QoAAAAcS9TSqEAQL1VEl7b8nCOq
NNTP-Posting-Host: 139.47.61.113
References: <d516815c-9115-41b5-a749-52e2e53581bcn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2897e591-ffd3-4ee6-8def-bdc476ef87ben@googlegroups.com>
Subject: Re: tclsh and cygwin (mobaxterm)
From: eukelade@gmail.com (pd)
Injection-Date: Sun, 26 Mar 2023 14:46:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1436
 by: pd - Sun, 26 Mar 2023 14:46 UTC

El domingo, 26 de marzo de 2023 a las 16:43:07 UTC+2, pd escribió:

> Any idea or explanation?

Of course this is just for fun, I'm be curious about this behaviour I cannot explain, please don't loose any time with this, just if you have a free time to waste ;-)

Re: tclsh and cygwin (mobaxterm)

<tvpp06$2oflm$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21613&group=comp.lang.tcl#21613

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: tclsh and cygwin (mobaxterm)
Date: Sun, 26 Mar 2023 15:39:50 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <tvpp06$2oflm$3@dont-email.me>
References: <d516815c-9115-41b5-a749-52e2e53581bcn@googlegroups.com>
Injection-Date: Sun, 26 Mar 2023 15:39:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c9f82d72910fc473ea44df25d95f7d12";
logging-data="2899638"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ilVBy/JziCP7bwRddDrss"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19 (x86_64))
Cancel-Lock: sha1:vju6rJ8FD/OBq6J2bwgy4HYU1Xc=
 by: Rich - Sun, 26 Mar 2023 15:39 UTC

pd <eukelade@gmail.com> wrote:
> I think this weird behaviour may be related to the fact of using a
> windows program in a "unix" shell environment (cygwin mobaxterm), the
> tclsh program cygwin is using is the one installed by magicsplat:

It is. Windows is very different internally from Unix (even if MS
claims and/or got is certified as 'posix' compatible) and you will find
lots of little tidbits like this where square pegs just don't fit
properly into round holes. At the Tcl script level the Tcl runtime
papers over the differences so the script see's little of them. But at
the interface just outside the runtime to the rest of the environment
you are at the mercy of whatever is handling that (in your case the
cygwin runtime).

Another one that can be very irritating when one uses "puts stderr"
debugging sometimes is that pure GUI programs don't have a
stdin/stderr/stdout IO channel available.

Re: tclsh and cygwin (mobaxterm)

<df2916f9-5cd2-4266-950e-851b448fa3bfn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21615&group=comp.lang.tcl#21615

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ac8:5744:0:b0:3d2:8d87:6710 with SMTP id 4-20020ac85744000000b003d28d876710mr3361574qtx.12.1679870155629;
Sun, 26 Mar 2023 15:35:55 -0700 (PDT)
X-Received: by 2002:a05:6214:17c8:b0:5a5:c0d:b620 with SMTP id
cu8-20020a05621417c800b005a50c0db620mr1785342qvb.1.1679870155428; Sun, 26 Mar
2023 15:35:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sun, 26 Mar 2023 15:35:55 -0700 (PDT)
In-Reply-To: <tvpp06$2oflm$3@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=192.183.219.24; posting-account=f4QznQoAAAAjupLEpV87s_G-96g1Io1w
NNTP-Posting-Host: 192.183.219.24
References: <d516815c-9115-41b5-a749-52e2e53581bcn@googlegroups.com> <tvpp06$2oflm$3@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <df2916f9-5cd2-4266-950e-851b448fa3bfn@googlegroups.com>
Subject: Re: tclsh and cygwin (mobaxterm)
From: bgriffinfortytwo@gmail.com (briang)
Injection-Date: Sun, 26 Mar 2023 22:35:55 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 31
 by: briang - Sun, 26 Mar 2023 22:35 UTC

On Sunday, March 26, 2023 at 8:39:53 AM UTC-7, Rich wrote:
> pd <euke...@gmail.com> wrote:
> > I think this weird behaviour may be related to the fact of using a
> > windows program in a "unix" shell environment (cygwin mobaxterm), the
> > tclsh program cygwin is using is the one installed by magicsplat:
> It is. Windows is very different internally from Unix (even if MS
> claims and/or got is certified as 'posix' compatible) and you will find
> lots of little tidbits like this where square pegs just don't fit
> properly into round holes. At the Tcl script level the Tcl runtime
> papers over the differences so the script see's little of them. But at
> the interface just outside the runtime to the rest of the environment
> you are at the mercy of whatever is handling that (in your case the
> cygwin runtime).
>
> Another one that can be very irritating when one uses "puts stderr"
> debugging sometimes is that pure GUI programs don't have a
> stdin/stderr/stdout IO channel available.

The specific problem here is the "isatty()" posix function. This function does not work correctly in a Windows Console. This function is only used when Tclsh is built for "unix". The Windows build does not use this function. Instead, tclsh is built as a Console Application which guarantees a Windows console is present, and tclsh operates accordingly.

Since the "unix" build uses isatty(), and this function always returns "false" on Windows, tclsh does not enable interactive mode, which disables the prompt. If you type in: set tcl_interactive 1, then the prompt will appear..

-Brian

Re: tclsh and cygwin (mobaxterm)

<tvrcfn$33kph$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21617&group=comp.lang.tcl#21617

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: tclsh and cygwin (mobaxterm)
Date: Mon, 27 Mar 2023 08:18:37 +0200
Organization: A noiseless patient Spider
Lines: 120
Message-ID: <tvrcfn$33kph$1@dont-email.me>
References: <d516815c-9115-41b5-a749-52e2e53581bcn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 27 Mar 2023 06:18:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fc3d3b472f660853db147c96cf9a677d";
logging-data="3265329"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/ZsKYYURKSKIK5x3YgHKs"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:xuj/mN+BL7GM+5Esrhk6YFTsD1o=
Content-Language: en-GB
In-Reply-To: <d516815c-9115-41b5-a749-52e2e53581bcn@googlegroups.com>
 by: Harald Oehlmann - Mon, 27 Mar 2023 06:18 UTC

Am 26.03.2023 um 16:43 schrieb pd:
> Hello,
>
> I have a weird behaviour with tclsh in cygwin (mobaxterm) environment and I really doesn't know why so I'd really appreciate any clue.
>
> Scenario:
>
> I've installed magisplat in my windows 10 so I have tclsh available in my path.
>
> When I open a cmd windows shell I can run tclsh and I get a tcl prompt (%) and command echo:
>
> c\:> tclsh
> %
>
> % puts "hello"
> hello
>
> But when I invoke tclsh from a mobaxterm terminal window I get no prompt and a solid squared cursor ([]):
>
> $ tclsh
> []
> puts "hello"
> hello
> []
>
> It also seems there's no command echo:
>
> $ tclsh
> set h hello
> set h
> puts "$h"
> hello
> []
>
> where it should be:
>
> $ tclsh
> % set h hello
> hello
> % set h
> hello
> % puts "$h"
> hello
>
> Also it seems tclsh is treating paths as windows style:
>
> $ tclsh
> puts "[set auto_path]"
> C:/Apps/Tcl86/lib/tcl8.6 C:/Apps/Tcl86/lib
>
> when I expect it would use unix like paths
>
> My assumption:
>
> I think this weird behaviour may be related to the fact of using a windows program in a "unix" shell environment (cygwin mobaxterm), the tclsh program cygwin is using is the one installed by magicsplat:
>
> $ which tclsh
> /drives/c/Apps/Tcl86/bin/tclsh
>
> And so there's a clash between naming conventions, if I create a tcl file just to require package ticklecharts like:
>
> lappend auto_path "/home/mobaxterm/myDownloads/tcl/ticklecharts-master"
> puts "[set auto_path]"
> package require ticklecharts
>
> and run it from ticklechars dir:
>
> $ pwd
> /home/mobaxterm/myDownloads/tcl/ticklecharts-master
> $ tclsh ej.tcl
> C:/Apps/Tcl86/lib/tcl8.6 C:/Apps/Tcl86/lib /home/mobaxterm/myDownloads/tcl/ticklecharts-master
> can't find package ticklecharts
> while executing
> "package require ticklecharts"
> (file "ej.tcl" line 5)
>
> changing the path to add to auto_path in the file to different values I get:
>
> - with /drives/c/Users/p/Downloads/tcl/ticklecharts-master
> $ tclsh ej.tcl
> C:/Apps/Tcl86/lib/tcl8.6 C:/Apps/Tcl86/lib /drives/c/Users/p/Downloads/tcl/ticklecharts-master
> can't find package ticklecharts
> while executing
> "package require ticklecharts"
> (file "ej.tcl" line 5)
>
> - with current dir (.):
> $ tclsh ej.tcl
> C:/Apps/Tcl86/lib/tcl8.6 C:/Apps/Tcl86/lib .
> html:.\render.html
>
> - with current dir as windows style path:
> $ tclsh ej.tcl
> C:/Apps/Tcl86/lib/tcl8.6 C:/Apps/Tcl86/lib {C:\Users\p\Downloads\tcl\ticklecharts-master}
> html:.\render.html
>
> So it reckonizes windows style paths only
>
> Maybe this is the reason of weird behaviour too, a kind of clash with internal paths or files o even pipes.
>
> Probably the solution is to install tcl from cygwin itself, but I really don't understand why it behaves so weird.
>
> Of course If I execute tclsh from cygwin through cmd.exe everything goes ok:
>
> $ cmd.exe /c tclsh.exe
> % set h hello
> hello
> % set h
> hello
>
>
> Any idea or explanation?

Are you aware, that tcl may also be build using cygwin?
Perhaps, there is also a tclsh package within the cygwin distribution (I
don't know).
Jan Nijtmans made a lot of effort to get tcl run on cygwin. I remember a
conference contribution at ETCL (in Strasbourg, I think).

Harald

Re: tclsh and cygwin (mobaxterm)

<9282f8f2-3e4c-423e-89d2-276ef894c86bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21618&group=comp.lang.tcl#21618

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ad4:58ab:0:b0:56e:9339:a0c9 with SMTP id ea11-20020ad458ab000000b0056e9339a0c9mr1729876qvb.1.1679916111257;
Mon, 27 Mar 2023 04:21:51 -0700 (PDT)
X-Received: by 2002:ac8:5a4d:0:b0:3df:37d5:8d26 with SMTP id
o13-20020ac85a4d000000b003df37d58d26mr4470016qta.4.1679916110926; Mon, 27 Mar
2023 04:21:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 27 Mar 2023 04:21:50 -0700 (PDT)
In-Reply-To: <df2916f9-5cd2-4266-950e-851b448fa3bfn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=139.47.61.113; posting-account=fwjo5QoAAAAcS9TSqEAQL1VEl7b8nCOq
NNTP-Posting-Host: 139.47.61.113
References: <d516815c-9115-41b5-a749-52e2e53581bcn@googlegroups.com>
<tvpp06$2oflm$3@dont-email.me> <df2916f9-5cd2-4266-950e-851b448fa3bfn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9282f8f2-3e4c-423e-89d2-276ef894c86bn@googlegroups.com>
Subject: Re: tclsh and cygwin (mobaxterm)
From: eukelade@gmail.com (pd)
Injection-Date: Mon, 27 Mar 2023 11:21:51 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2378
 by: pd - Mon, 27 Mar 2023 11:21 UTC

Hello Brian,

I think you hit the point,

El lunes, 27 de marzo de 2023 a las 0:35:57 UTC+2, briang escribió:

> The specific problem here is the "isatty()" posix function. This function does not work correctly in a Windows Console. This function is only used when Tclsh is built for "unix". The Windows build does not use this function.. Instead, tclsh is built as a Console Application which guarantees a Windows console is present, and tclsh operates accordingly.
>
> Since the "unix" build uses isatty(), and this function always returns "false" on Windows, tclsh does not enable interactive mode, which disables the prompt. If you type in: set tcl_interactive 1, then the prompt will appear.

bingo!

$ tclsh
set h hello
[]
set tcl_interactive 1
1 % set h hello
hello
%

So I think the conservative solution is to include the line "set tcl_interactive 1" at the beginning of all my scripts so I can use both in mobaxterm shell and windows cmd shell, reasoning it wouldn't affect to windows version (I've tested it)

Thanks very much to bring peace to my brain ;-)

Re: tclsh and cygwin (mobaxterm)

<8bd579b4-883f-4eb7-b39f-f52cf19521d0n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21619&group=comp.lang.tcl#21619

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:18a2:b0:3e1:8f4:af5a with SMTP id v34-20020a05622a18a200b003e108f4af5amr4306458qtc.11.1679916558630;
Mon, 27 Mar 2023 04:29:18 -0700 (PDT)
X-Received: by 2002:ac8:57c2:0:b0:3e3:db7d:da45 with SMTP id
w2-20020ac857c2000000b003e3db7dda45mr4324583qta.2.1679916558363; Mon, 27 Mar
2023 04:29:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 27 Mar 2023 04:29:18 -0700 (PDT)
In-Reply-To: <tvrcfn$33kph$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=139.47.61.113; posting-account=fwjo5QoAAAAcS9TSqEAQL1VEl7b8nCOq
NNTP-Posting-Host: 139.47.61.113
References: <d516815c-9115-41b5-a749-52e2e53581bcn@googlegroups.com> <tvrcfn$33kph$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8bd579b4-883f-4eb7-b39f-f52cf19521d0n@googlegroups.com>
Subject: Re: tclsh and cygwin (mobaxterm)
From: eukelade@gmail.com (pd)
Injection-Date: Mon, 27 Mar 2023 11:29:18 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2526
 by: pd - Mon, 27 Mar 2023 11:29 UTC

El lunes, 27 de marzo de 2023 a las 8:18:36 UTC+2, Harald Oehlmann escribió:

> Are you aware, that tcl may also be build using cygwin?

I'm pretty sure it can be build using cygwin because cygwin has packages to install tcl

> Perhaps, there is also a tclsh package within the cygwin distribution (I
> don't know).

yes there are a few packages:

$ apt-cyg find tcl
Trying to download file setup.ini
Updated setup.ini

Searching for installed packages matching tcl:

Searching for installable packages matching tcl:
mingw64-i686-tcl
mingw64-x86_64-tcl
octave-octclip
pidgin-tcl
ruby-tcltk
tcl
tcl-db
tcl-db4.8
tcl-devel
tcl-itcl
tcl-itcl-devel
tcl-itk
tcl-itk-devel
tcl-iwidgets
tcl-ming
tcl-solv
tcl-sqlite3
tcl-tcldot
tcl-tix
tcl-tk
tcl-tk-devel
tcl-togl
tcl-togl-devel
tcl-xapian
tcl-xapian-doc
tcl3270
tcltk
timidity++-tcltk
weechat-tcl

So, as I said previously, this problem should be solved just installed a cygwin package for tcl but I didn't install because I don't want to have two tcl systems installed (magicspalt and cygwin) maybe clashing each other and for sure duplicating space without needed. The problem was not so bad I coudn't live with it, it was just a weird problem and I really want to know the reason operating here, just for fun and knowing.

regards

Re: tclsh and cygwin (mobaxterm)

<6bee5c32-e043-4b56-bf78-a588feb1d63en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21620&group=comp.lang.tcl#21620

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:953:b0:746:9ff2:27f with SMTP id w19-20020a05620a095300b007469ff2027fmr2135132qkw.8.1679923327334;
Mon, 27 Mar 2023 06:22:07 -0700 (PDT)
X-Received: by 2002:a05:620a:404b:b0:748:716b:d540 with SMTP id
i11-20020a05620a404b00b00748716bd540mr416674qko.0.1679923325278; Mon, 27 Mar
2023 06:22:05 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 27 Mar 2023 06:22:05 -0700 (PDT)
In-Reply-To: <tvpp06$2oflm$3@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=136.231.212.241; posting-account=A91wAAoAAADgBUxBX6QqsrSD26GLhVp8
NNTP-Posting-Host: 136.231.212.241
References: <d516815c-9115-41b5-a749-52e2e53581bcn@googlegroups.com> <tvpp06$2oflm$3@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6bee5c32-e043-4b56-bf78-a588feb1d63en@googlegroups.com>
Subject: Re: tclsh and cygwin (mobaxterm)
From: arjen.markus895@gmail.com (Arjen Markus)
Injection-Date: Mon, 27 Mar 2023 13:22:07 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 30
 by: Arjen Markus - Mon, 27 Mar 2023 13:22 UTC

On Sunday, March 26, 2023 at 5:39:53 PM UTC+2, Rich wrote:
> pd wrote:
> > I think this weird behaviour may be related to the fact of using a
> > windows program in a "unix" shell environment (cygwin mobaxterm), the
> > tclsh program cygwin is using is the one installed by magicsplat:
> It is. Windows is very different internally from Unix (even if MS
> claims and/or got is certified as 'posix' compatible) and you will find
> lots of little tidbits like this where square pegs just don't fit
> properly into round holes. At the Tcl script level the Tcl runtime
> papers over the differences so the script see's little of them. But at
> the interface just outside the runtime to the rest of the environment
> you are at the mercy of whatever is handling that (in your case the
> cygwin runtime).
>
> Another one that can be very irritating when one uses "puts stderr"
> debugging sometimes is that pure GUI programs don't have a
> stdin/stderr/stdout IO channel available.
Well, actually, you can get the standard channels to work in a "DOS-box" on WIndows. Try:
c:> tclsh
% package require Tk
[A wish toplevel window appears - at least on my screen]
8.6.8
% [type in commands or have [puts] display its results]

Regards,

Arjen

Re: tclsh and cygwin (mobaxterm)

<da9f5244-6449-49c2-9509-892b1ab03c4an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21621&group=comp.lang.tcl#21621

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ad4:58c7:0:b0:56e:9089:a447 with SMTP id dh7-20020ad458c7000000b0056e9089a447mr1839800qvb.0.1679923424920;
Mon, 27 Mar 2023 06:23:44 -0700 (PDT)
X-Received: by 2002:ad4:4f2b:0:b0:570:ffdf:c0a3 with SMTP id
fc11-20020ad44f2b000000b00570ffdfc0a3mr1801051qvb.10.1679923424656; Mon, 27
Mar 2023 06:23:44 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 27 Mar 2023 06:23:44 -0700 (PDT)
In-Reply-To: <8bd579b4-883f-4eb7-b39f-f52cf19521d0n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=136.231.212.241; posting-account=A91wAAoAAADgBUxBX6QqsrSD26GLhVp8
NNTP-Posting-Host: 136.231.212.241
References: <d516815c-9115-41b5-a749-52e2e53581bcn@googlegroups.com>
<tvrcfn$33kph$1@dont-email.me> <8bd579b4-883f-4eb7-b39f-f52cf19521d0n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <da9f5244-6449-49c2-9509-892b1ab03c4an@googlegroups.com>
Subject: Re: tclsh and cygwin (mobaxterm)
From: arjen.markus895@gmail.com (Arjen Markus)
Injection-Date: Mon, 27 Mar 2023 13:23:44 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3057
 by: Arjen Markus - Mon, 27 Mar 2023 13:23 UTC

On Monday, March 27, 2023 at 1:29:20 PM UTC+2, pd wrote:
> El lunes, 27 de marzo de 2023 a las 8:18:36 UTC+2, Harald Oehlmann escribió:
>
> > Are you aware, that tcl may also be build using cygwin?
> I'm pretty sure it can be build using cygwin because cygwin has packages to install tcl
> > Perhaps, there is also a tclsh package within the cygwin distribution (I
> > don't know).
> yes there are a few packages:
>
> $ apt-cyg find tcl
> Trying to download file setup.ini
> Updated setup.ini
>
> Searching for installed packages matching tcl:
>
> Searching for installable packages matching tcl:
> mingw64-i686-tcl
> mingw64-x86_64-tcl
> octave-octclip
> pidgin-tcl
> ruby-tcltk
> tcl
> tcl-db
> tcl-db4.8
> tcl-devel
> tcl-itcl
> tcl-itcl-devel
> tcl-itk
> tcl-itk-devel
> tcl-iwidgets
> tcl-ming
> tcl-solv
> tcl-sqlite3
> tcl-tcldot
> tcl-tix
> tcl-tk
> tcl-tk-devel
> tcl-togl
> tcl-togl-devel
> tcl-xapian
> tcl-xapian-doc
> tcl3270
> tcltk
> timidity++-tcltk
> weechat-tcl
>
> So, as I said previously, this problem should be solved just installed a cygwin package for tcl but I didn't install because I don't want to have two tcl systems installed (magicspalt and cygwin) maybe clashing each other and for sure duplicating space without needed. The problem was not so bad I coudn't live with it, it was just a weird problem and I really want to know the reason operating here, just for fun and knowing.
>
> regards
I have seen this problem also with other programs under Cygwin. I think it is buffering the output to screen in an awkward way.

Regards,

Arjen


devel / comp.lang.tcl / tclsh and cygwin (mobaxterm)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor