'xargs' (part of 'findutils') is completely broken if
3.6.0-0.108.gb7f5a33200a9 (test version) is installed:
$ xargs
xargs: Unexpected suffix cmdline on cmdline
$ xargs --version
xargs: Unexpected suffix cmdline on cmdline
$ echo narf | xargs echo
xargs: Unexpected suffix cmdline on cmdline
'xargs' is from the current x86_64 findutils-4.9.0-1 .
All other packages are up to date per setup.ini dated
2024-04-01 21:32:37 GMT.
I first discovered this under Windoze 11 Insider Preview
(with no other Cygwin test versions).
On a Windoze 10 machine, it was OK with cygwin 3.5.1-1,
appeared when I installed 3.6.0-0.108.gb7f5a33200a9,
then went away when I reverted to 3.5.1-1 .
(All machines are VMware VM's.)
----------------------------------------------------------------
I have just started looking at the source, and the error
is coming from this snippet from 'safe_atoi()' in
lib/safe-atoi.c :
safe_atoi (const char *s, enum quoting_style style)
{
...
lval = strtol (s, &end, 10);
...
else if (*end)
{
die (EXIT_FAILURE, errno, _("Unexpected suffix %s on %s"),
quotearg_n_style (0, style, end),
quotearg_n_style (1, style, s));
}
...
From 'man 3 strtol":
"If the subject string is empty (or not in acceptable form),
no conversion is performed and the value of s is stored
in ptr [i.e., 'end'] ..."
Which is apparently what is happening here.
I have yet to discover where "cmdline" is coming from (perhaps
/proc/%d/cmdline), let alone what it looks like.
Further progress by me will depend on what success I have in
building 'findutils' from source :) .
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple