Re: Should "exec" run a shell function?

2017-07-20 Thread Stephane Chazelas
2017-07-16 20:47:52 +0200, Martijn Dekker: > A test script: > > #! /bin/sh > true() { > echo "exec runs function" > } > exec true > > On zsh, pdksh and mksh, 'exec' runs the shell function. On all other > POSIX shells (at least bash, dash, yash, ksh93, FreeBSD sh), it runs the > external 't

Re: Should "exec" run a shell function?

2017-07-20 Thread Martijn Dekker
Op 20-07-17 om 10:30 schreef Geoff Clare: > I just noticed something not touched on in the previous discussion. > > The EXIT STATUS section for exec says: > > If command is specified, exec shall not return to the shell; > rather, the exit status of the process shall be the exit status of

[1003.1(2008)/Issue 7 0001056]: CMSG_NXTHDR(): under what criteria may NULL be returned?

2017-07-20 Thread Austin Group Bug Tracker
The following issue has been RESOLVED. == http://austingroupbugs.net/view.php?id=1056 == Reported By:EdSchouten Assigned To:aj

[Finished] Emergency Maintenance Downtime for AustinGroupBugs site today

2017-07-20 Thread Mark Brown
All- I believe that I have the immediate problems resolved (PHP hack, god I hate PHP) but I think I’ll need to schedule more detailed work in the near future. We are back on line for now. Mark Mark Brown ms_br...@sbcglobal.net On July 20, 2017 at 8:28:46 AM, Mark Brown (ms_br...@sbcglobal.net

Re: Should "exec" run a shell function?

2017-07-20 Thread SHwareSyst
The grammar has 'program' now too, so it doesn't necessarily follow that a script is precluded, I'd think... The exec() would be again of a shell instance, or equivalent. The wording has been, to me, more "replace with what is specified by simple_command as operand", whether that is a binary,

Emergency Maintenance Downtime for AustinGroupBugs site today

2017-07-20 Thread Mark Brown
All- I will be taking the issue tracker down today for an indefinite period (more than an hour, less than a day) for maintenance. We’ve been targeted by malware hackers, and I need to make some corrections right away.  I know that there is a call today but this really cannot wait, in my opinio

Re: Should "exec" run a shell function?

2017-07-20 Thread Geoff Clare
Martijn Dekker wrote, on 16 Jul 2017: > > A test script: > > #! /bin/sh > true() { > echo "exec runs function" > } > exec true > > On zsh, pdksh and mksh, 'exec' runs the shell function. On all other > POSIX shells (at least bash, dash, yash, ksh93, FreeBSD sh), it runs the > external 'tru

[1003.1(2016)/Issue7+TC2 0001156]: Should fflush (NULL) flush streams not backed by files?

2017-07-20 Thread Austin Group Bug Tracker
The following issue has been SUBMITTED. == http://austingroupbugs.net/view.php?id=1156 == Reported By:Florian Weimer Assigned To: