Re: posix_spawn facility

2023-07-31 Thread Eric Blake via Cygwin
Following up on an older thread: On Tue, Apr 18, 2023 at 03:49:20PM -0500, Eric Blake wrote: > The glibc bug points to the sample posix_spawn() implementation in > POSIX XRAT - but that example implementation is non-normative and > known buggy, so it is not safe to rely on it. >

Re: posix_spawn facility

2023-04-18 Thread Eric Blake via Cygwin
On Wed, Apr 19, 2023 at 12:10:34AM +0200, Bruno Haible wrote: > Eric Blake wrote: > > we now have implementations in the wild that differ in behavior, and > > use security as a reason for the divergence, it is worth getting that > > clarified in POSIX. I'll file a bug

Re: posix_spawn facility

2023-04-18 Thread Eric Blake via Cygwin
(Firefox, Chromium, Rust) > > * posix_spawn_file_actions_addfchdir_np > > implemented in glibc, musl libc > > but not used by any package so far [3]. > > > > The next POSIX will contain these functions (without the _np suffix).[4] > > Thanks for the po

Re: [ITCM] diffutils findutils

2021-08-04 Thread Eric Blake via Cygwin-apps
On Mon, Aug 02, 2021 at 06:43:25PM -0600, Brian Inglis wrote: > Hi folks, > > Eric Blake no longer seems to have free time available for Cygwin package > upgrades, so I would like to offer to co-maintain diffutils and findutils, > and provide upgrades, as they are both five yea

Re: Is it possible to alter Birth time?

2020-10-08 Thread Eric Blake via Cygwin
le a file system is mounted on that block device) -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature -- Problem reports: https://cygwin.com/problems.html FAQ:

Re: calm bounces

2020-04-16 Thread Eric Blake via Cygwin
e others also seeing these bounces from Corinna's releases: https://sourceware.org/pipermail/cygwin/2020-April/244386.html Yes. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org -- Problem reports: https://cygwin.c

Re: hardlinks on directories?

2020-01-30 Thread Eric Blake
(the same directory mounted under two different names). -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation

Re: [PATCH v2 0/3] Support opening a symlink with O_PATH | O_NOFOLLOW

2020-01-13 Thread Eric Blake
in Linux, then we don't have to do any better. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH v2 0/3] Support opening a symlink with O_PATH | O_NOFOLLOW

2020-01-13 Thread Eric Blake
fchmodat(AT_SYMLINK_NOFOLLOW); it is only with the recent introduction of the fchmodat2() syscall that this has become possible (https://patchwork.kernel.org/patch/9596301/) -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org

Re: [PATCH v2] Cygwin: rmdir: fail if last component is a symlink, as on Linux

2019-09-24 Thread Eric Blake
x is reasonable. (I still hope that POSIX will relax its stance to allow both Solaris AND Linux behaviors, but that's not going to happen any time soon...) -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

Re: [PATCH v2] Cygwin: rmdir: fail if last component is a symlink, as on Linux

2019-09-24 Thread Eric Blake
ce both give ENOTEMPTY, > + we're okay. */ > + char *buf; > + char *p = stpcpy (buf = tp.c_get (), dir) - 1; > + dir = buf; > + while (p > dir && isdirsep (*p)) > + *p-- = '\0'; > + } >if (!(fh = build_fh_name (dir,

Re: Command line processing in dcrt0.cc does not match Microsoft parsing rules

2019-09-09 Thread Eric Blake
teria-evaluation.en.html ranks github as worse than gitlab, in part because there is no way to use the full power of github without surrendering to the use of non-free software. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.o

Re: Command line processing in dcrt0.cc does not match Microsoft parsing rules

2019-09-05 Thread Eric Blake
f ambiguous parsing instead of well-balanced quoting, it's no surprise if cygwin doesn't parse that corner case in the manner expected. A patch to teach cygwin to parse the corner case identically would be welcome, but fixing recipient processes does not scale as well as fixing the culprit source proc

Re: Command line processing in dcrt0.cc does not match Microsoft parsing rules

2019-09-05 Thread Eric Blake
On 9/5/19 5:01 PM, Stephen Provine via cygwin wrote: > On 9/5/19 2:05 PM, Eric Blake wrote: >> On 9/5/19 1:31 PM, Stephen Provine via cygwin wrote: >>> Not expected. > >> Why not? That obeyed cmd's odd rules: The moment you have a " in the >> command l

Re: Command line processing in dcrt0.cc does not match Microsoft parsing rules

2019-09-05 Thread Eric Blake
structing the command line string in a manner that matches that blog post, the bug would be in Go. Presumably, Cygwin is correctly quoting things any time it calls into a non-Cygwin process (but if not, give us a test case for us to patch cygwin, or even better submit the patch). -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

Re: Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ...

2019-08-28 Thread Eric Blake
would be great to learn what bordercase > this code was trying to handle and if there isn't another way to do that. > > > Corinna > -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

Re: Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ...

2019-08-28 Thread Eric Blake
a number of places, we have accidentally ended up with mkdir 'e:\' behaving like mkdir 'e:/' instead of acting on the DOS path. Patches welcome. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

Re: bug with grep 3.0.2 in cygwin 3.0.7

2019-08-28 Thread Eric Blake
difference you are observing matches POSIX. > > > I have to backslash ^ to be OK like : grep -E 'a\^b' Correct. > > > Is-it a bug ? No. (In fact, if you test on Linux, you'll see the same behavior, which shows it is not specific to Cygwin). -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

Re: Future setup regression caused by 'mkdir: always check-for-existence' commit

2019-08-26 Thread Eric Blake
pt that is using mkdir without -p. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

Re: Regression (last snapshot)

2019-08-02 Thread Eric Blake
POSIX explicitly requires that the shell is unable to reset SIGPIPE back to SIG_DFL if it was inherited ignored (try it - you CANNOT use the 'trap' command to undo an inherited ignored SIGPIPE, even though it can be used to undo signals ignored locally). It is generally considered bad practice to l

Re: Regression (last snapshot)

2019-08-01 Thread Eric Blake
entally letting grep inherit the ignored SIGPIPE? When SIGPIPE is not ignored, grep's failure to write to a pipe causes termination before the failed write completes; but when it is ignored, grep sees EPIPE from the failed write and reports that. -- Eric Blake, Principal Software Engineer Red Hat, In

Re: go through duplicate commands

2019-05-21 Thread Eric Blake
skeleton .bashrc file) to be tweaked to add a HISTCONTROL=ignoredups so that new installations automatically turn on that feature of bash. But in the meantime, you can modify your own ~/.bashrc to turn it on for yourself. -- Eric Blake, Principal Software Engineer Red Hat, Inc.

Re: Testing your altera uni program

2019-05-07 Thread Eric Blake
står nu här, med armarna öppna, och ber om nåd. Hjälp mig med detta > felmeddelande. Looks like our autoresponder got confused by your use of a different language than English. https://cygwin.com/faq.html#faq.using.fixing-find_fast_cwd-warnings -- Eric Blake, Principal Software Engineer Red H

Re: bug: cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard

2019-04-25 Thread Eric Blake
gt; > Would it be allowed and valid to #define MSG_EOR 0 to simplify lack of > support? No, because that implies that EVERY send() call is requesting MSG_EOR and that it never fails. Defining it to a distinct non-zero value makes it possible to report EOPNOTSUPP. -- Eric Blake, Prin

Re: bug: cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard

2019-04-24 Thread Eric Blake
pbugs.net/main_page.php although I personally thought POSIX was clear enough that MSG_EOR is required to be defined, even if only so that it can trigger send() errors showing that it is unsupported. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

Re: [main] john 21084 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer.

2019-04-17 Thread Eric Blake
On 4/17/19 7:19 AM, DJ creations wrote: > > Looks like our autoresponder is not (yet) smart enough to autorespond when the body is empty because the question was in the subject instead. https://cygwin.com/faq.html#faq.using.fixing-find_fast_cwd-warnings -- Eric Blake, Principal So

Re: [PATCH] default ps -W process start time to system boot time when inaccessible, 0, -1

2019-03-23 Thread Eric Blake
g on. On the other hand, the lie is pretty realistic - the program can't have been running longer than your computer has been powered on, and all such affected programs will have the same timestamp. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: q

Re: Cygwin 3.0.0-1

2019-03-21 Thread Eric Blake
-2017. I'm still trying to get a new uname(1) (part of coreutils) built. I had a free weekend earlier this month to attempt that, but got stalled by a cygwin1.dll bug on Windows 2012 (now fixed). -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization:

Re: Is async-signal-safety applicable to Cygwin?

2019-03-19 Thread Eric Blake
upted another non-async-safe function is indeed observable on Cygwin and can indeed result in deadlocks (a classic example being the case if you malloc() from a signal handler that interrupted an ongoing malloc() call). -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-32

Re: rsync fails on Win 2012 server [was: [ANNOUNCEMENT] Cygwin 3.0.1-1]

2019-03-04 Thread Eric Blake
uploaded to https://cygwin.com/snapshots/ Please test. Confirmed. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq

rsync fails on Win 2012 server [was: [ANNOUNCEMENT] Cygwin 3.0.1-1]

2019-03-02 Thread Eric Blake
652 fork: child -1 - forked process 2980 died unexpectedly, retry 0, exit code 0x100, errno 11 rsync: fork failed in do_recv: Resource temporarily unavailable (11) rsync error: error in IPC code (code 14) at main.c(897) [Receiver=3.1.2] -- Eric Blake, Principal Software Engineer Red Hat, Inc

Re: Cygwin 3.0.1-1 Breaks ALL cygwin applications on Windows 7 x64

2019-02-27 Thread Eric Blake
with recent changes in network username validation, for ideas on better debugging this. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwi

Re: bash string-operator problem

2019-02-21 Thread Eric Blake
than you ever wanted to know, read http://austingroupbugs.net/view.php?id=375 -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.c

Re: bash string-operator problem

2019-02-21 Thread Eric Blake
h proper quoting, and using the portable spelling of equality (if you want to port your script to more than just bash): [ "$A" != "$B" ] [ "$A" = "$B" ] -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization:

Re: [PATCH] Cygwin: add secure_getenv

2019-02-19 Thread Eric Blake
w, just as on BSDs. If that's the right thing > to do for BSD, it's not... *really* wrong for Cygwin either, regardless > what Linux is doing. > > That in turn means Yaakov's patch is perfeclty fine since it's equivalent > to the above gnulib code. > > Agreed? Yes. -- Eric

Re: [PATCH] Cygwin: add secure_getenv

2019-02-19 Thread Eric Blake
that emulation. > > So if there is something wrong with the patch, then AFAIK gnulib is > wrong too. Eric? The patch may be overly strict (returning NULL where it doesn't have to), but that does not make it wrong in my eyes. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: Get Cygwin home directory path for current user

2019-02-14 Thread Eric Blake
ul. Are you going to write and submit the patch? Because it's not my itch, I do not plan to be the one to write such a patch. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

Re: Get Cygwin home directory path for current user

2019-02-14 Thread Eric Blake
On 2/14/19 2:22 PM, Bill Stewart wrote: > On Thu, Feb 14, 2019 at 12:49 PM Eric Blake wrote: > >> Depending on the shell, ~ is expanded to $HOME prior to invoking a >> program. But if you want to take the shell's expansions out of the >> equation, you could use: >>

Re: Get Cygwin home directory path for current user

2019-02-14 Thread Eric Blake
equation, you could use: cygpath -w "$HOME" -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

Re: manpage searches "^\s+keyword\s" vs. ???

2019-01-30 Thread Eric Blake
On 1/30/19 1:09 PM, Eric Blake wrote: > \s is a non-standard regex extension - glibc provides it, Cygwin has not > (at least, historically). POSIX provides [[:space:]] as a portable > alternative (although not all libc have implemented all of POSIX yet), > but is annoyingly

Re: manpage searches "^\s+keyword\s" vs. ???

2019-01-30 Thread Eric Blake
r patch to expand \s into [[:space:]] would be a reasonable idea. > I guess this is down to compilation options at this point. Not so much compilation options of man and less, but rather the code used in Cygwin itself for handling regex. -- Eric Blake, Principal Software Engineer Red Hat, Inc.

Re: regtool 2.11.1 need a way to specify leading "-" in values

2019-01-22 Thread Eric Blake
HKCU\Environment\MAVEN_OPTS' "-Xms512m -Xmx3072m > -Dcom.sun.management.jmxremote" > regtool: unknown option -- X > Try `regtool --help' for more information. Try: regtool -s set '\HKCU\Environment\MAVEN_OPS' -- "-Xms512m -Xmx3072m -Dcom.sun.management.jmxremote" -- Eric Blake, Princ

Re: Fun with cp -R error when both foo and foo.exe exist

2018-10-09 Thread Eric Blake
On 10/9/18 11:21 AM, Dan Kegel wrote: On Tue, Oct 9, 2018 at 5:03 AM Eric Blake wrote: whether someone patches the cygwin dll or cp, it seems like some rather hairy code for what is normally a rare corner case, so it probably won't happen unless someone actually contributes a patch. Right

Re: Fun with cp -R error when both foo and foo.exe exist

2018-10-09 Thread Eric Blake
the cygwin dll or cp, it seems like some rather hairy code for what is normally a rare corner case, so it probably won't happen unless someone actually contributes a patch. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org

Re: grep < fifo fails

2018-10-08 Thread Eric Blake
nks for isolating the problem! -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.

Re: Tab completion adding spurious escape characters

2018-09-05 Thread Eric Blake
; a\=b; echo $a) hi c $ (PATH=:$PATH; a=b; echo $a) b As for , and @, they are never special to the shell, but as I argued above, it's easier to write tab completion code that doesn't have to special case things than to worry about what is or is not special) -- Eric Blake, Principal Software Engineer R

Re: error in "cygpath" behavior

2018-08-31 Thread Eric Blake
wing about logical mode. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com

Re: [Bug] __wait_status_to_int() is expected to be a macro

2018-08-24 Thread Eric Blake
not compiling there, then it's hard to argue what Cygwin apps need the type to stick around. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org -- Problem reports: http://cygwin.com/problems.html FAQ: http

Re: The 'mount' function different from Linux

2018-08-16 Thread Eric Blake
the actual device manipulation earlier on. As such, the tool REALLY CANNOT mimic what Linux does, because it IS NOT doing the same things. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org -- Problem reports: http

Re: strtod ("nan") returns negative NaN

2018-08-14 Thread Eric Blake
preserve the negative sign bit when parsing "-nan". https://sourceware.org/bugzilla/show_bug.cgi?id=23007 So, the desired behavior: strtod("nan") -> NaN strtod("-nan") -> -NaN printf("%f", NaN) -> "NaN" printf("%f", -NaN) ->

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.11.0-0.1

2018-08-13 Thread Eric Blake
. Updating the code base to uniformly use UTF-8 seems reasonable to me. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.co

Re: BASH 4.4 mapfile/readarray/read builtins mis-behaving with pipe [edit] documentation bug

2018-07-20 Thread Eric Blake
for a cygwin-specific patch. [Hint - as the maintainer of the cygwin bash port, I don't recall adding any cygwin-specific tweaks for mapfile - and a quick test on Fedora shows the same behaviors] -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization

Re: Aw: Re: Problematic interpretion of paths starting with double slashes

2018-06-12 Thread Eric Blake
On 06/12/2018 08:14 AM, Sven Eden wrote: Gesendet: Dienstag, 12. Juni 2018 um 13:52 Uhr Von: "Eric Blake" Then fix your script to provide 3 slashes instead of 2. Only 2 slashes has the magic UNC behavior. It is not my script. *my* scripts are portable by all means. Go

Re: Problematic interpretion of paths starting with double slashes

2018-06-12 Thread Eric Blake
ine is: https://github.com/gentoo/gentoo/blob/331976f/eclass/toolchain.eclass#L2136 Well, then report that as a bug to the author of that script. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org -- Problem reports:

Re: [Bug] __wait_status_to_int() is expected to be a macro

2018-06-12 Thread Eric Blake
On 06/12/2018 03:48 AM, Corinna Vinschen wrote: On Jun 8 12:43, Eric Blake wrote: On 06/08/2018 12:26 PM, Hans-Bernhard Bröker wrote: Am 08.06.2018 um 17:16 schrieb Denis Nikiforov: /usr/include/boost/process/detail/posix/is_running.hpp:18:1: error: non-constant condition for static

Re: [Bug] __wait_status_to_int() is expected to be a macro

2018-06-08 Thread Eric Blake
an be used in a static_assert(). On the other hand, the implementation of WIFEXITED() is more like Linux if it DOES result in a compile-time constant when used on a compile-time constant argument; so in that regards, it would ALSO be worth patching Cygwin, whether or not the Boost portability bug is fix

Re: My delayed complaint about spam on this list

2018-06-06 Thread Eric Blake
rator to approve the message?" Even if the overseers can't turn on human moderation, they are also the right people to complain to about spam blocking not being effective enough. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | l

Re: Help with C clearenv and setenv

2018-05-31 Thread Eric Blake
niter" error (-1). What it SHOULD do is set environ to a one-element array containing NULL, at least until someone submits a patch adding the glibc extension of clearenv() to Cygwin. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu

Re: cygwin not showing afp files since update

2018-05-04 Thread Eric Blake
of the few lists that munges reply-to settings and breaks my expectations. I wish we could fix it, but I'm not in charge of the mailing list settings. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org -- Problem reports

Re: inotify?

2018-05-03 Thread Eric Blake
in support inotify_init() and friends implemented on top of the Windows native API are certainly welcome. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org -- Problem reports: http://cygwin.com/problem

Re: Updated POSIX 2018 Standard Available

2018-04-17 Thread Eric Blake
he timeframe of that older document which was nearing the end of its 10 years. So other than editorial changes, such as the document name, there are no substantial content changes to what you've already had available for 2 years. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-

Re: [bug] coreutils: potentially dangerous: $(realpath //) != /

2018-03-12 Thread Eric Blake
OSIX has already declared it to be implementation-defined. Any implementation is also free to define // as an error that never resolves to a path; such an implementation would still comply with POSIX, but break expectations of scripts that are written to cater to only the Linux and Cygwin behav

Re: [bug] coreutils: potentially dangerous: $(realpath //) != /

2018-03-12 Thread Eric Blake
o you fail to glob what was expected). At any rate, realpath is not broken, but only your expectations. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: gawk Regression: CR characters are not stripped on Windows

2018-02-27 Thread Eric Blake
;. or strip the CR in any other means. But the same is true of any script that must run on both Windows and Linux. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org -- Problem reports: http://cygwin.c

Re: setup 2.887 release candidate - please test

2018-02-08 Thread Eric Blake
grams also output the version in --help, but GNU Coding Standards don't require that, so it is not universal the way --version should be) -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org -- Problem reports: http://

Re: [PATCH libtirpc] Disable libtirpc's own bindresvport{,_sa}() in favor of Cygwin's

2018-02-07 Thread Eric Blake
at git does by default) or 'diff -c' when generating a patch, so that it has proper context. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org

Re: environ: fix link error on 64-bit Cygwin

2018-01-31 Thread Eric Blake
he option > + -Wl,--disable-auto-import is in use. */ > +_GL_EXTERN_C __declspec(dllimport) char **environ; > +# endif > # if !@HAVE_DECL_ENVIRON@ > /* Set of environment variables and values. An array of strings of the form > "VARIABLE=VALUE", terminated with a NULL. */ > > > -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

Re: [PATCH] winsup/doc/etc.postinstall.cygwin-doc.sh fix shell variable typo

2017-12-20 Thread Eric Blake
[ -r $target ] && $mks $CYGWINFORALL -P -n "Cygwin/$name" -d "$desc" -- $target Wrong. Needs to be [ -r "$target" ] to be properly quoted. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org

Re: mkshortcut fails when run from setup, postinstall/cygwin-doc.sh - not otherwise

2017-12-20 Thread Eric Blake
ot yet POSIX and is not supported on dash). (and again btw, I am not sure bash should count "[ -r ]" as a true statement) I am. POSIX requires that behavior. Any time you have exactly one argument to '[', the result is true unless that argument was the empty string. -- Eri

Re: Wrong file position after writing 65537 bytes to block device

2017-12-19 Thread Eric Blake
ocations (caveat: I haven't tested what Linux does in that regards). -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.co

Re: Which is it -pc- or -unknown-

2017-10-20 Thread Eric Blake
or some reason, agree with your patch, it still is not something so urgent that we would backport it downstream any faster than normal propagation of other upstream packages slowly picking up newer config.guess as they release new tarballs. -- Eric Blake, Principal Software Engineer Red Hat, Inc.

Re: Extra CR symbol from backticks on Cygwin 2.9.0

2017-09-12 Thread Eric Blake
t; So remove trailing CRLF on Windows. CR are not newlines. Cygwin apps don't generate CR by default, so bash doesn't strip CR by default. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

Re: Extra CR symbol from backticks on Cygwin 2.9.0

2017-09-11 Thread Eric Blake
in command substitutions and other places: https://cygwin.com/ml/cygwin-announce/2017-01/msg00047.html The option is not on by default, but exists because it is a common desire when you can't be bothered to otherwise sanitize CR out of your input stream. -- Eric Blake, Principal Software Engineer Red Ha

Re: problem with paste-from-clipboard

2017-09-01 Thread Eric Blake
On 09/01/2017 09:03 AM, Ladislav DANKO wrote: > is there any update on this please? > Top-posting,... > > On 15.05.2017 20:21, Eric Blake wrote: >> On 05/15/2017 12:09 PM, Steven Penny wrote: >>> On Sat, 13 May 2017 15:11:00, Eric Blake wrote: >> Than

Re: Aliases - I learned something new

2017-08-25 Thread Eric Blake
ansion on 'foo' when you do 'exec foo' > Example: > > $ alias t1='echo abc' > $ alias t2='dev' > $ t1 t2 > abc t2 > > $ alias t1='echo abc ' > $ t1 t2 > abc def Doesn't quite match what you typed above (dev vs. def), but illustrates the point. -- Eric Blake, Prin

Re: alias appears to not work inside a called bash script

2017-08-23 Thread Eric Blake
h as /bin/sh already implies --posix; that's already close enough without having to make /bin/bash cripple non-POSIX extensions). -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

[newlib-cygwin] headers: avoid bareword attributes

2017-08-17 Thread Eric Blake
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7b3d8b9485186aa17db10c76f347e3e12201a12c commit 7b3d8b9485186aa17db10c76f347e3e12201a12c Author: Eric Blake <ebl...@redhat.com> Date: Wed Aug 16 20:39:18 2017 -0500 headers: avoid bareword attributes Alwa

Re: stdnoreturn: fix for Cygwin

2017-08-16 Thread Eric Blake
On 08/16/2017 07:59 PM, Eric Blake wrote: > Adding cygwin list... > > On 08/16/2017 07:01 PM, Bruno Haible wrote: >> On Cygwin 1.7.30, I'm seeing this testdir build failure, when compiling >> test-stdnoreturn.c: >> >> /usr/include/stdlib.h:66:28: error: exp

Re: missing poppler and openjpeg packages on mirrors

2017-08-16 Thread Eric Blake
: sourceware.org is having some fallout from a hardware upgrade (see [1]). Some things got restored from backup. Work is ongoing. [1] https://www.sourceware.org/ml/overseers/2017-q3/msg00060.html -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.o

[PATCH] headers: avoid bareword attributes

2017-08-16 Thread Eric Blake
Always use the __-decorated form of an attribute name in public headers, as the bareword form is in the user's namespace, and we don't want compilation to break just because the user defines the bareword to mean something else. Signed-off-by: Eric Blake <ebl...@redhat.com> --- winsup/

Re: stdnoreturn: fix for Cygwin

2017-08-16 Thread Eric Blake
fully, the problem goes away if cygwin patches its headers to use __attribute__((__noreturn__)), so that gnulib can then define noreturn at will. I'll look into patching Cygwin to fix all barename attributes I can find that should be __barename__ instead. -- Eric Blake, Principal Software En

Re: gawk 4.1.4: CR separate char for CRLF files

2017-08-16 Thread Eric Blake
eam bugs; if you don't like info, the same data can be found here: https://www.gnu.org/software/gawk/manual/html_node/Bugs.html#Bugs (in general, ANY good program will include instructions for how to reach upstream in its --help output - of course, not all programs are at the same level of goodness i

Re: gawk 4.1.4: CR separate char for CRLF files

2017-08-09 Thread Eric Blake
On 08/09/2017 06:03 AM, Eric Blake wrote: > On 08/09/2017 03:37 AM, Jannick wrote: > >> Which is a pretty much of a pain when there is no easy fallback solution >> provided in case a major change is applied. ... >> This is - to say the least - unpleasant in the lig

Re: gawk 4.1.4: CR separate char for CRLF files

2017-08-09 Thread Eric Blake
t website www.cygwin.com). On Linux, nothing strips CR automatically. So on Cygwin, we behave the same - nothing strips CR automatically on binary mounted data. And the fact that the change was made AND ANNOUNCED back in February, but you are now only 6 months later complaining about it, is telling. -

Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3

2017-08-01 Thread Eric Blake
't completely emulate Linux; but the thought on IRC was that more users are probably familiar with windows alt-sequence codepoint generation than they are with Linux alt-keypress bindings, and that less than 1% of the population would even notice the difference. -- Eric Blake, Principal Software

Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3

2017-07-28 Thread Eric Blake
On 07/28/2017 01:39 PM, Steven Penny wrote: > On Fri, 28 Jul 2017 09:54:59, Eric Blake wrote: >> > LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6): >> >=20 >> >$ chcp.com 65001 >> >Active code page: 65001 >> >=20 >> > - Alt 148 outputs

Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3

2017-07-28 Thread Eric Blake
On 07/28/2017 07:09 AM, Steven Penny wrote: > On Fri, 28 Jul 2017 06:41:08, Eric Blake wrote: >> As in /etc/defaults/Cygwin.bat installed by the base-files package? > > As in "C:\cygwin64\Cygwin.bat" that can be found after a regular install of > Cygwin > Oh,

Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3

2017-07-28 Thread Eric Blake
On 07/27/2017 09:43 PM, Steven Penny wrote: > On Thu, 27 Jul 2017 16:37:45, Eric Blake wrote: >> I still don't know your environment (it's really hard to reproduce >> issues if I don't know the steps to reproduce them). This looks like a >> bash prompt, but are you runni

Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3

2017-07-27 Thread Eric Blake
On 07/27/2017 01:56 PM, Steven Penny wrote: > On Thu, 27 Jul 2017 12:08:53, Eric Blake wrote: >> I've got some time today to look at building readline, but for the life >> of me, I can't figure out what I'm supposed to be debugging. You have >> so many emails saying "se

Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3

2017-07-27 Thread Eric Blake
On 07/27/2017 12:08 PM, Eric Blake wrote: > So I'm back to cmd to try and debug things. Next, I tried: > > c:\cygwin\bin> .\dash > > > and again got Ω; pressing complains that ./dash: 1: Ω: not found To double check things, I started .\dash, typed 'echo $$', then in a s

Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3

2017-07-27 Thread Eric Blake
On 04/14/2017 11:33 PM, Steven Penny wrote: > On Thu, 13 Apr 2017 13:48:04, Eric Blake wrote: >> Is it still a problem with pselect, where rebuilding with the same >> configuration as 7.0.1-2 fixes things? I've got some time today to look at building readline, but for the life

Re: change in wget logfile behavior

2017-07-27 Thread Eric Blake
[revisiting this thread] On 03/29/2017 08:45 PM, Eric Blake wrote: > On 03/29/2017 08:30 PM, Andrew Schulman wrote: >> Recently, I guess since wget was upgraded to 1.19, whenever I run wget I get >> a >> bonus message on the console: >> >> Redirecting out

[ANNOUNCEMENT] Updated: wget-1.19.1-2

2017-07-27 Thread Eric Blake (cygwin)
ase choose the one nearest to you: http://cygwin.com/mirrors.html QUESTIONS: == If you want to make a point or ask a question the Cygwin mailing list is the appropriate place. -- Eric Blake volunteer cygwin wget package maintainer For more details on this list (including unsubscription),

Updated: wget-1.19.1-2

2017-07-27 Thread Eric Blake (cygwin)
ase choose the one nearest to you: http://cygwin.com/mirrors.html QUESTIONS: == If you want to make a point or ask a question the Cygwin mailing list is the appropriate place. -- Eric Blake volunteer cygwin wget package maintainer For more details on this list (including unsubscription),

Re: Sparse files in Cygwin

2017-07-26 Thread Eric Blake
not try to create sparse files by default for performance reasons. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

Re: Cygwin strptime() is missing "%s" which strftime() has

2017-07-24 Thread Eric Blake
rse. It's not worth complaining about, and if you want faster action, then submit patches yourself instead of asking others to do it for you. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature

Re: Cygwin strptime() is missing "%s" which strftime() has

2017-07-24 Thread Eric Blake
uld be > able to use "%s" with strptime(), > but currently there's a disconcert with that. Indeed, "%s" is a GNU > extension yet it has been on Linux for years, > so why not here but only 50%? Demand. I patches strftime to add %s because Coreutils wanted it. But coreuti

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-10 Thread Eric Blake
t whether the compiler allows it, but whether libc allows it. ALL libc that are remotely close to POSIX compliant support fopen(,"wb"), but only Windows platforms (and NOT glibc) support fopen(,"wt"). -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Eric Blake
build with CR stripping built >> in. > > Except it may not work in makefiles, since make calls sed directly. Then make it a script that you put first on your $PATH. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Eric Blake
ngw apps may be one use of cygwin, but it is not the "intended use case". The intended use case of cygwin is to emulate as much as possible of a linux environment. If building for mingw on Linux requires you to explicitly strip CR when dealing with data from Windows, then so should buil

  1   2   3   4   5   6   7   8   9   10   >