bug#59819: Acknowledgement (Bug Report: [coreutils] echo command interprets wildcards, when read with the 'cat' command from a file, in a for-in loop)

2022-12-04 Thread th3_d0ctor
I missed the quote.
Sorry for my bad.

Kind regards



Am Sun, 04 Dec 2022 16:54:02 +
schrieb help-debb...@gnu.org (GNU bug Tracking System):

> Thank you for filing a new bug report with debbugs.gnu.org.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
>  bug-coreutils@gnu.org
>
> If you wish to submit further information on this problem, please
> send it to 59...@debbugs.gnu.org.
>
> Please do not send mail to help-debb...@gnu.org unless you wish
> to report a problem with the Bug-tracking system.
>






bug#59827: [PATCH] info date to be explicit about the date formats

2022-12-04 Thread Marc Chantreux
hello coreutils maintainers,

I would like info page of the date to be explicit about
the ready to use date formats so users can pick them as
example for their own ones (as example: just remove the
timezone information).

regards,
marc

---
 doc/coreutils.texi | 5 +
 1 file changed, 5 insertions(+)

diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index c801097..8c24b52 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -16559,18 +16559,23 @@ terms of the time to include.  It can be one of the 
following:
 @table @samp
 @item auto
 Print just the date.  This is the default if @var{timespec} is omitted.
+("%Y-%m-%d")
 
 @item hours
 Append the hour of the day to the date.
+("%Y-%m-%dT%H%:z")
 
 @item minutes
 Append the hours and minutes.
+("%Y-%m-%dT%H:%M%:z")
 
 @item seconds
 Append the hours, minutes and seconds.
+("%Y-%m-%dT%H:%M:%S%:z")
 
 @item ns
 Append the hours, minutes, seconds and nanoseconds.
+("%Y-%m-%dT%H:%M:%S,%N%:z")
 @end table
 
 If showing any time terms, then include the time zone using the format
-- 
2.34.1






bug#59821: 9.1: du Aborted (corrupt filesystem)

2022-12-04 Thread Luke Dashjr
Version: sys-apps/coreutils-9.1-r1 (Gentoo)

Context: Linux has a long-standing bug which leads to ext4 RAM dishs (zram 
specifically) getting corrupted randomly. This manifests as various 
newfstatat calls returning -1 errno=EUCLEAN (Structure needs cleaning).

The `du` tool, when it encounters them, prints an error as expected, but later 
on aborts at:
#4  0x77d4d3dc in __GI_abort () at abort.c:79
#5  0x0001ba08 in leave_dir (fts=fts@entry=0x100042680, 
ent=ent@entry=0x100071630)
at lib/fts-cycle.c:136
#6  0x0001bd00 in fts_build (sp=sp@entry=0x100042680, 
type=type@entry=3) at lib/fts.c:1326
#7  0x0001ce7c in rpl_fts_read (sp=0x100042680) at lib/fts.c:925
#8  0x00014864 in du_files (files=, 
bit_flags=) at src/du.c:691
#9  0x00015cfc in main (argc=, argv=) at 
src/du.c:1123

(I am not certain if the fstatat return value is related to the later abort, 
because I couldn't find a way to get gdb to break only when fstatat returns 
nonzero)

Luke





bug#59819: Bug Report: [coreutils] echo command interprets wildcards, when read with the 'cat' command from a file, in a for-in loop

2022-12-04 Thread Andreas Schwab
On Dez 04 2022, th3_d0ctor wrote:

> $ echo "*" >b; for i in `cat b`; do echo "$i"; done
> ==> list current working directory instead of printing the wildcard '*'

That's how it is supposed to work, since file name expansion is
performed after all other expansions (just before quote removal).

This is basic shell operation knowledge that everyone using the shell
should remember.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#59818: incomplete type 'struct pollfd', etc., when compiling tail on MacOS (patch included)

2022-12-04 Thread Dennis Williamson
I received the errors for tail.c shown below when compiling coreutils on 
MacOS (11.6). Adding __APPLE__ to the #if defined for poll.h fixes the 
issue (see the diff at the bottom). Making this change matches that line 
to the one within check_output_alive().


commit 324c188cfd8a1628c260e5003d309613a0c66e57 (August 29, 2022) made 
the change to check_output_alive(), but missed the change reported here.


Dennis

(HEAD: aaa306ad76d48b27efd75101d57b6ec5bf90362c)

Error:

  CC   src/tail.o
src/tail.c:367:17: error: variable has incomplete type 'struct pollfd'
  struct pollfd pfd;
    ^
src/tail.c:367:10: note: forward declaration of 'struct pollfd'
  struct pollfd pfd;
 ^
src/tail.c:370:17: error: use of undeclared identifier 'POLLRDBAND'
  pfd.events |= POLLRDBAND; /* Needed for illumos, macos.  */
    ^
src/tail.c:372:7: error: implicit declaration of function 'poll' is 
invalid in C99 [-Werror,-Wimplicit-function-declaration]

  if (poll (, 1, 0) >= 0 && (pfd.revents & (POLLERR | POLLHUP)))
  ^
src/tail.c:372:49: error: use of undeclared identifier 'POLLERR'
  if (poll (, 1, 0) >= 0 && (pfd.revents & (POLLERR | POLLHUP)))
    ^
src/tail.c:372:59: error: use of undeclared identifier 'POLLHUP'
  if (poll (, 1, 0) >= 0 && (pfd.revents & (POLLERR | POLLHUP)))
  ^
5 errors generated.
make[2]: *** [src/tail.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Diff:


diff --git a/src/tail.c b/src/tail.c
index 6c7d59faf..14abf0871 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -55,7 +55,7 @@
 # include 
 #endif

-#if defined _AIX || defined __sun || HAVE_INOTIFY
+#if defined _AIX || defined __sun || defined __APPLE__ || HAVE_INOTIFY
 # include 
 #endif