Re: add non-option reordering to in-tree getopt_long
От
Nathan Bossart
Тема
Re: add non-option reordering to in-tree getopt_long
Дата
Msg-id
20230614212816.GA492731@nathanxps13
Ответ на
Re: add non-option reordering to in-tree getopt_long (Noah Misch)
Список
Дерево обсуждения
add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Michael Paquier <michael@paquier.xyz>
Re: add non-option reordering to in-tree getopt_long Michael Paquier <michael@paquier.xyz>
Re: add non-option reordering to in-tree getopt_long Noah Misch <noah@leadboat.com>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Noah Misch <noah@leadboat.com>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Michael Paquier <michael@paquier.xyz>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Michael Paquier <michael@paquier.xyz>
Re: add non-option reordering to in-tree getopt_long Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Michael Paquier <michael@paquier.xyz>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Michael Paquier <michael@paquier.xyz>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Tom Lane <tgl@sss.pgh.pa.us>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
Re: add non-option reordering to in-tree getopt_long Tom Lane <tgl@sss.pgh.pa.us>
Re: add non-option reordering to in-tree getopt_long Nathan Bossart <nathandbossart@gmail.com>
On Tue, Jun 13, 2023 at 05:17:37PM -0700, Noah Misch wrote:
> If you have a test program to be run, I can run it on AIX.
Thanks. The patch above [0] adjusts 040_createuser.pl to test modifying
argv, so that's one test program. And here's a few lines for reversing
argv:
#include
int
main(int argc, char *argv[])
{
for (int i = 0; i < argc / 2; i++)
{
char *tmp = argv[i];
argv[i] = argv[argc - i - 1];
argv[argc - i - 1] = tmp;
}
for (int i = 0; i < argc; i++)
printf("%s ", argv[i]);
printf("\n");
}
[0] https://postgr.es/m/attachment/147420/v1-0001-Teach-in-tree-getopt_long-to-move-non-options-to-.patch
--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com
В списке pgsql-hackers по дате отправления