On 2025-12-06 14:40, Takashi Yano via Cygwin wrote:
Hi Thomas,

On Sat, 6 Dec 2025 18:48:29 +0100
Thomas Wolff wrote:

Am 03.12.2025 um 13:49 schrieb Takashi Yano via Cygwin:
On Wed, 3 Dec 2025 11:34:01 +0000 (UTC)
matthew patton wrote:
the libopenconsole.postinstall script ihas some glaring issues.

* define strings once and then use the variable instead of repeating over and 
over and over the long-ass path names.

* the wget to STDOUT strikes me as pointless. use curl if you're going to 
resort to that kind of operation. Otherwise just save the .zip to disk already 
without gratuitous memory buffering
* /tmp should not be assumed. use $TMPDIR
                                        - ${TMPDIR:-${TMP:-${TEMP:-/tmp}}}
* use trap to clean up after yourself in both the successful and unsuccessful 
cases
* 'POSTFIX' makes no sense. it's ARCH or PLATFORM
                                        - $ uname -mo # x86_64 Cygwin
                                        - config triplet?
* personally I would have versions.txt be a tab deliminted file with 
version_num\tsha256 of x64\tsha256 of x86 or something along those lines.
Thanks!
Unfortunately, this does not work for me on Windows 10.
And I cannot test on Windows 11; my previous report was bogus, I
self-compiled the unpatched cygwin1.dll for a cross-test but it fails.
Running bash from a Windows console, then Cygwin console works, also
running wsl from there. Running `mintty -h alw` says
The handle is invalid.
Error code: Bash/Service/ERROR_INVALID_HANDLE

Thansk for testing.
Do you mean `mintty -h alw` works on self-compiled-unpatched
cygwin1.dll but does not work on self-compiled-patched cygwin1.dll?

 From where do you start mintty?
1) Windows shortcut?
2) From command prompt?
                                - bash? - dash? - cmd? - PowerShell ISE?
3) From another mintty window?
                                - SHELL?
4) From WindowsTerminal?
                                - SHELL?
  5) From Xwin XDG Menu?        - just to complete the set:
$ head /usr/share/applications/mintty.desktop
[Desktop Entry]
Version=1.0
Name=Cygwin Terminal
Exec=mintty
TryExec=mintty
Type=Application
Icon=mintty
Categories=System;TerminalEmulator;
OnlyShowIn=X-Cygwin;
$ cygcheck -hvf /usr/share/applications/mintty.desktop
/usr/share/applications/mintty.desktop: found in package mintty-3.8.1-1

--
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                -- Antoine de Saint-Exupéry

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to