clang++: M_PI is visible in conforming mode

2019-01-06 Thread Keith Thompson
The macro M_PI, which expands to a constant approximating the value of pi, is defined by POSIX, but not by ISO C or ISO C++. It is not a reserved identifier, so it should be available for use as a user-defined identifier. The problem: Including causes M_PI to be defined, even when the C++ compil

Re: iswcntrl() regression

2019-01-06 Thread Thomas Wolff
Am 06.01.2019 um 21:21 schrieb Corinna Vinschen: On Dec 19 21:57, Bruno Haible wrote: Hello Thomas, Oops 1: I forgot to add the reference to POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswcntrl.html Oops 2: The relevant expression is iswcntrl (WEOF), not iswcntrl (EOF).

Re: iswcntrl() regression

2019-01-06 Thread Corinna Vinschen
On Dec 19 21:57, Bruno Haible wrote: > Hello Thomas, > > Oops 1: I forgot to add the reference to POSIX: > http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswcntrl.html > > Oops 2: > The relevant expression is iswcntrl (WEOF), not iswcntrl (EOF). > > > > Are there any other special req

Re: /dev/fd/N not synonymous with file descriptor N; it is on Linux

2019-01-06 Thread Corinna Vinschen
On Dec 16 17:31, Houder wrote: > L.S., > > /dev/fd/N not synonymous with file descriptor N; it is on Linux > > 64-@@ cat /dev/fd/0 <<\EOF > > Hi > > EOF > cat: /dev/fd/0: No such file or directory > > fails on Cygwin; not on Linux. > > Also see: > > https://cygwin.com/ml/cygwin/2018-12/msg

Re: Bash heredoc on FD 3

2019-01-06 Thread Corinna Vinschen
On Dec 2 10:43, Steven Penny wrote: > Using this file: > >$ cat hello.sh >awk -f /dev/fd/3 3 print "hello world" >} >eof > > it runs as expected with Dash: > >$ dash hello.sh >hello world > > However it fails with Bash: > >$ bash hello.sh >aw