On 10/09/2021 21:34, (Joerg Schilling) wrote:
Harald van Dijk <a...@gigawatt.nl> wrote:

No, it isn't. The second command prints

ksh93:

    c a
    d

zsh:

    printf: 3: argument specifier out of range
    c a

bosh:

    c a
     d

Not correct: ksh93 prints the same as bosh

Indeed, something went wrong with the copying there.

> and pleasew note that my example is
> using an integer format instead of a string format.

Irrelevant. You wrote:

 > That is exactly what existing implementations do.

in response to Oğuz's

 > That is, the empty string would be taken for the third argument.

That can only be taken to be about Oğuz's example, not your modified example which had not even been posted yet.

  • Adding %n$ conversi... Robert Elz via austin-group-l at The Open Group
    • Re: Adding %n$... Oğuz via austin-group-l at The Open Group
      • Re: Adding... Joerg Schilling via austin-group-l at The Open Group
        • Re: Ad... Harald van Dijk via austin-group-l at The Open Group
          • Re... Joerg Schilling via austin-group-l at The Open Group
            • ... Harald van Dijk via austin-group-l at The Open Group
              • ... Joerg Schilling via austin-group-l at The Open Group
                • ... Harald van Dijk via austin-group-l at The Open Group
                • ... Joerg Schilling via austin-group-l at The Open Group
                • ... Harald van Dijk via austin-group-l at The Open Group
                • ... Stephane Chazelas via austin-group-l at The Open Group
                • ... Joerg Schilling via austin-group-l at The Open Group
                • ... Stephane Chazelas via austin-group-l at The Open Group
                • ... Stephane Chazelas via austin-group-l at The Open Group
                • ... Joerg Schilling via austin-group-l at The Open Group
                • ... Stephane Chazelas via austin-group-l at The Open Group

Reply via email to