Re: About printf %2$s (Was: Coordination on standardizing gettext() in future POSIX)

2020-02-03 Thread Joerg Schilling
Stephane CHAZELAS wrote: > (what's "whatwhell" by the way? or do you mean Scan Mascheck's > "whatshell"?) Correct, sticky fingers ;-) Jörg -- EMail:jo...@schily.net(home) Jörg Schilling D-13353 Berlin joerg.schill...@fokus.fraunhofer.de (work) Blog:

Re: About printf %2$s (Was: Coordination on standardizing gettext() in future POSIX)

2020-02-03 Thread Stephane CHAZELAS
2020-02-03 11:43:38 +0100, Joerg Schilling: [...] > > $ /usr/xpg4/bin/sh -c 'type printf' > > printf is a shell builtin > > This does not apply to OpenSolaris, but on OpenSolaris, this was closed > source > as ksh88 is not available under OSS license. > > This also does not apply to Oracle

Re: About printf %2$s (Was: Coordination on standardizing gettext() in future POSIX)

2020-02-03 Thread Joerg Schilling
Stephane Chazelas wrote: > 2020-01-24 15:14:48 +0100, Joerg Schilling: > > printf "Hello World %2$s %1$s\\n" 1 2 > [...] > > mksha ksh88 clone > [...] > > ksh88 had no printf builtin. OK, this is a mstake that frequently happens because most shells have a builtin printf.

About printf %2$s (Was: Coordination on standardizing gettext() in future POSIX)

2020-01-31 Thread Stephane Chazelas
2020-01-24 15:14:48 +0100, Joerg Schilling: [...] > > > printf "$(gettext 'Hello World %2$d %1$d')\\n" 1 2 > > > > > > to be able to control the order of the output of arguments in a way that > > > is > > > specific to the target language. ... > > > > > BTW: this extension is also available