gawk: regression with unary plus
Previously conversions could be triggered by either adding zero (+0), unary plus (+) or unary minus (-) [1]: $ gawk --version GNU Awk 4.1.4, API: 1.1 (GNU MPFR 3.1.6-p1, GNU MP 6.1.2) $ ./gawk 'BEGIN {print "01" + 0}' 1 $ ./gawk 'BEGIN {print +"01"}' 1 $ ./gawk 'BEGIN {print -"01"}' -1 However now conversion only happens with adding zero and unary minus: $ gawk --version GNU Awk 4.2.0, API: 2.0 (GNU MPFR 3.1.6-p1, GNU MP 6.1.2) $ gawk 'BEGIN {print "01" + 0}' 1 $ gawk 'BEGIN {print +"01"}' 01 $ gawk 'BEGIN {print -"01"}' -1 Does anyone know where this change was mentioned or why it was done? [1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Searching full, portable Cygwin package for windows and NOT just the installer
Greetings, Ben! > When I go to web page > http://cygwin.com/ > then I can download CygWin from there (currently the file "setup-x86_64.exe"). > Unfortunately this file is just an installer which retrieves in turn > several other files from Internet and remote servers. > Since I have no overview what is downloaded from which server I distrust such > installers in general. > I prefer full packages which contains everything needed and can be > inspected in advance (e.g. by virus scanners) before > actual installation. > 99,9% of all software is offered in such a way. Cygwin per se is a single DLL (cygwin1.dll), not a "software" in a way you perceive it. > Why use Cygwin such a fishy distribution way? Normal distribution way. 99.9% operating systems are distributed the same way. > Is there really no full package to download? Define "full package"? How "full"? "Package" of what? -- With best regards, Andrey Repin Sunday, February 4, 2018 23:54:12 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: How to start Cygwin from outside Cygwin and pass a command to execute?
Greetings, Ben! > Assume my CgyWin (on a windows 7) is currently NOT started. This statement makes zero sense. "Cygwin" as is is a compatibility layer (library), you can't "start" it separately from a program that uses it. > Assume I want to call from Windows my CgyWin and pass a command to execute. Just execute said command. > Afterwards CygWin should automatically be closed again. See above. > How can I achieve this? Just do it. -- With best regards, Andrey Repin Sunday, February 4, 2018 23:50:13 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Why does /etc/setup/installed.db list tar.bz2 even if tar.xz
On 04/02/2018 03:19, Steven Penny wrote: On Sat, 12 Oct 2013 23:48:00, wrote: The installed.db seems to always list packages as being tar.bz2 even when they are tar.xz. Is there any reason for this? Or is it a bug? http://cygwin.com/ml/cygwin/2013-10/msg00170.html This is an old thread, but it appears this issue was never answered and persists. For example, /etc/setup/installed.db has entries like this: it is an historical shortcut in the setup code. ".tar.bz2" is just added to package name and version, it is not really derived from the package file $ grep -H "tar.bz2" package_db.cc package_db.cc: pkgm.name + "-" + std::string(pkgm.installed.Canonical_version()) + ".tar.bz2 " + When we moved from bz2 to xz, that shortcut was not changed. Regards Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple