Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Chet Ramey
On 4/17/19 12:45 PM, Robert Elz wrote: > Date:Wed, 17 Apr 2019 11:51:17 -0400 > From:Chet Ramey > Message-ID: > > | But that's not what I'm claiming. I'm observing that the behavior you > | cited from the historical Bourne shell, the option you said Geoff

Fwd: Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Chet Ramey
--- Begin Message --- Date:Wed, 17 Apr 2019 11:51:17 -0400 From:Chet Ramey Message-ID: | But that's not what I'm claiming. I'm observing that the behavior you | cited from the historical Bourne shell, the option you said Geoff forgot, | is not present in

Re: pthread_t and thrd_t

2019-04-17 Thread Joel Sherrill
On 4/17/2019 3:53 PM, Alan Coopersmith wrote: > On 4/17/19 8:58 AM, Geoff Clare wrote: >> So glibc will conform if we require that pthread_t and thrd_t are >> defined as the same type, but does anyone know of an implementation >> that has pthreads and C11/C17 threads, with pthread_t and thrd_t

Re: pthread_t and thrd_t

2019-04-17 Thread Alan Coopersmith
On 4/17/19 8:58 AM, Geoff Clare wrote: > So glibc will conform if we require that pthread_t and thrd_t are > defined as the same type, but does anyone know of an implementation > that has pthreads and C11/C17 threads, with pthread_t and thrd_t defined > as different types? Not here, Oracle

Re: pthread_t and thrd_t

2019-04-17 Thread enh
for Android, i've been sitting this one out waiting for it to actually matter (i wasn't aware glibc had added this API --- i thought musl was the only implementation to date), but my intention is to just reuse the pthread types, not least because that lets me offer this in a backwards compatible

RE: pthread_t and thrd_t

2019-04-17 Thread Shware Systems
My implementation defines both as pointers, not int's, as 'typedef thrd_t pthread_t;'. Since threads.h is 99% a subset of pthreads.h, I see no reason to have them be different types, even as a breaking change. What is missing is in pthreads.h, to account for the new attributes C11 introduced,

pthread_t and thrd_t

2019-04-17 Thread Geoff Clare
I'm working on drafting the changes to align POSIX with C17 and I have a question for the group about the types pthread_t and thrd_t. It seems to me that it would be best if these are defined as the same type, so that there are no complications with calling both pthread_self() and thrd_current()

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Chet Ramey
On 4/17/19 11:37 AM, Robert Elz wrote: > Date:Wed, 17 Apr 2019 11:05:28 -0400 > From:Chet Ramey > Message-ID: > > | The two historical reference implementations are the SVR4 Bourne shell > | and ksh88. What the Bourne shell did in 1978 is not as important as

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Robert Elz
Date:Wed, 17 Apr 2019 11:05:28 -0400 From:Chet Ramey Message-ID: | The two historical reference implementations are the SVR4 Bourne shell | and ksh88. What the Bourne shell did in 1978 is not as important as what | these two shells did in 1988. I have no

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Chet Ramey
On 4/17/19 11:12 AM, Joerg Schilling wrote: >>> Could you explain what kind of shell you have in the binary file "sh4.2"? >> >> It's the shell from SVR4.2. > > Could you be a bit more explicit please? How much more explicit do you want me to be? It's a Mac OS X binary built from the sh source

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Joerg Schilling
Chet Ramey wrote: > On 4/17/19 11:02 AM, Joerg Schilling wrote: > > Chet Ramey wrote: > > > >> $ cat xtrap1 > >> (trap '' SIGINT; $SHELL -c 'trap some_command SIGINT ; trap' ) > >> $ SHELL=sh4.2 sh4.2 xtrap1 > >> $ > >> > >> Someone with Solaris can probably say what the SVR4 shell does, at

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Chet Ramey
On 4/17/19 11:02 AM, Joerg Schilling wrote: > Chet Ramey wrote: > >> $ cat xtrap1 >> (trap '' SIGINT; $SHELL -c 'trap some_command SIGINT ; trap' ) >> $ SHELL=sh4.2 sh4.2 xtrap1 >> $ >> >> Someone with Solaris can probably say what the SVR4 shell does, at least >> as it appears there. Maybe the

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Joerg Schilling
OK, it seems that I need to correct the script for the v7 shell, since that shell does not only not understand "INT" but also does not grok "-" So the correct results are: SHELL=v7sh sh test3 (trap '' INT EMT; $SHELL -c 'trap "" 2; trap 2; trap; psig $$ | grep \^INT') INT ignored (trap ''

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Chet Ramey
On 4/17/19 10:25 AM, Robert Elz wrote: > Date:Wed, 17 Apr 2019 09:40:01 +0100 > From:Geoff Clare > Message-ID: <20190417084001.GA26431@lt2.masqnet> > > | You make it sound like we are deliberately changing the standard to > | disallow historical behaviour.

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Joerg Schilling
Chet Ramey wrote: > $ cat xtrap1 > (trap '' SIGINT; $SHELL -c 'trap some_command SIGINT ; trap' ) > $ SHELL=sh4.2 sh4.2 xtrap1 > $ > > Someone with Solaris can probably say what the SVR4 shell does, at least > as it appears there. Maybe the bosh output is enough. Could you explain what kind of

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Joerg Schilling
Robert Elz wrote: > Date:Wed, 17 Apr 2019 11:35:18 +0200 > From:Joerg Schilling > Message-ID: > <5cb6f356.dh4k5z2xfkptm0+v%joerg.schill...@fokus.fraunhofer.de> > > > | If the standard did require something that is neither covered by the > | historical Bourne

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Chet Ramey
On 4/17/19 9:45 AM, Robert Elz wrote: > Date:Wed, 17 Apr 2019 11:35:18 +0200 > From:Joerg Schilling > Message-ID: > <5cb6f356.dh4k5z2xfkptm0+v%joerg.schill...@fokus.fraunhofer.de> > > > | If the standard did require something that is neither covered by the > |

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Robert Elz
Date:Wed, 17 Apr 2019 09:40:01 +0100 From:Geoff Clare Message-ID: <20190417084001.GA26431@lt2.masqnet> | You make it sound like we are deliberately changing the standard to | disallow historical behaviour. That's not what's happening. But it is. | We are

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Chet Ramey
On 4/17/19 5:35 AM, Joerg Schilling wrote: > Geoff Clare wrote: > >> My chain of reasoning is ... >> >> The standard says "Signals that were ignored on entry to a >> non-interactive shell cannot be trapped or reset, although no error >> need be reported when attempting to do so". This means

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Robert Elz
Date:Wed, 17 Apr 2019 11:35:18 +0200 From:Joerg Schilling Message-ID: <5cb6f356.dh4k5z2xfkptm0+v%joerg.schill...@fokus.fraunhofer.de> | If the standard did require something that is neither covered by the | historical Bourne Shell behavior We know the

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Robert Elz
Date:Tue, 16 Apr 2019 16:17:43 +0100 From:Geoff Clare Message-ID: <20190416151743.GA19870@lt2.masqnet> | I'm sure we haven't tested every shell, so it's impossible to | answer that. Is there any shell you know of, other than bash, that acts as you claim all

[1003.1(2016)/Issue7+TC2 0001198]: Comparison of numeric string values in awk

2019-04-17 Thread Austin Group Bug Tracker
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1198 == Reported By:geoffclare Assigned To:

[1003.1(2008)/Issue 7 0000472]: strftime %C does not account for sign character

2019-04-17 Thread Austin Group Bug Tracker
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=472 == Reported By:markh Assigned To:ajosey

[1003.1(2016)/Issue7+TC2 0001166]: Case variants needed for strftime %b as well as %B

2019-04-17 Thread Austin Group Bug Tracker
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1166 == Reported By:zackw Assigned To:

[1003.1(2013)/Issue7+TC1 0000953]: Alias expansion is under-specified

2019-04-17 Thread Austin Group Bug Tracker
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=953 == Reported By:wpollock Assigned To:

[1003.1(2016)/Issue7+TC2 0001159]: Is termination after receipt of SIGINT in dd(1) an error?

2019-04-17 Thread Austin Group Bug Tracker
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1159 == Reported By:scottcheloha Assigned To:

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Joerg Schilling
Geoff Clare wrote: > My chain of reasoning is ... > > The standard says "Signals that were ignored on entry to a > non-interactive shell cannot be trapped or reset, although no error > need be reported when attempting to do so". This means that if > "trap some_command INT" or "trap - INT" is

Re: [1003.1(2016)/Issue7+TC2 0001212]: Enhance trap command

2019-04-17 Thread Geoff Clare
Thor Lancelot Simon wrote, on 16 Apr 2019: > > On Tue, Apr 16, 2019 at 04:17:43PM +0100, Geoff Clare wrote: > > > > There was general agreement on the teleconference that having the trap > > output reflect what the shell will actually do is the right behaviour > > to specify. You seem to be a