On 14/02/2024 07:54, Oğuz wrote:
On Wed, Feb 14, 2024 at 9:58 AM Harald van Dijk <a...@gigawatt.nl> wrote:
The test script with 'return'?

I mean this one:

   for x in y; do
     ! continue
   done
   echo $?

Ah, thanks for the clarification. I still do not see the same results as you (I still see a difference between yash 2.53 and 2.54, not 2.54 and 2.55), but in dash, gwsh, and yash alike, it looks like it is that same fix for the return command that also affected the break and continue commands. I believe that is simply a bug, and unless the conclusion in this thread is that POSIX is wrong to specify what it does, I will see to it that at least in gwsh, this is restored for the break and continue commands.

Cheers,
Harald van Dijk

  • sh 'continue... Thorsten Glaser via austin-group-l at The Open Group
    • Re: sh ... Chet Ramey via austin-group-l at The Open Group
      • Re:... Oğuz via austin-group-l at The Open Group
        • ... Harald van Dijk via austin-group-l at The Open Group
          • ... Oğuz via austin-group-l at The Open Group
            • ... Harald van Dijk via austin-group-l at The Open Group
              • ... Oğuz via austin-group-l at The Open Group
                • ... Harald van Dijk via austin-group-l at The Open Group
                • ... Oğuz via austin-group-l at The Open Group
                • ... Robert Elz via austin-group-l at The Open Group
        • ... Chet Ramey via austin-group-l at The Open Group
          • ... Christoph Anton Mitterer via austin-group-l at The Open Group
            • ... Chet Ramey via austin-group-l at The Open Group
          • ... Robert Elz via austin-group-l at The Open Group
            • ... Vincent Lefevre via austin-group-l at The Open Group
    • Re: sh ... Thorsten Glaser via austin-group-l at The Open Group
      • Re:... Harald van Dijk via austin-group-l at The Open Group
        • ... Harald van Dijk via austin-group-l at The Open Group

Reply via email to