On Thu, Sep 03, 2026 at 06:11:19PM +0200, Bruno Haible wrote:
> Patrice Dumas wrote:
> > > dist-hook: dist-many-files
> > > 
> > > dist-many-files:
> > >   $(MKDIR_P) $(distdir)/
> > >   for file in `cat $(srcdir)/many-files.txt`; do \
> > >     if test -f $$file; then d=.; else d=$(srcdir); fi; \
> > >     cp -p $$d/$$file $(distdir)/$$file || exit 1; \
> > >   done
> > 
> > Wouldn't "in `cat $(srcdir)/many-files.txt`" as for argument suffer from
> > the same length issue?
> 
> No, because that's internal processing of the shell. The
> "Argument list too long" error comes from the exec* system call.

Ok.  I vaguely remember something about solaris shells implementing for
as a command, which could lead to the same error, but let's try your
code and see if it fails in the CI.

Thanks!

-- 
Pat

  • Re: ... Gavin Smith
  • &quo... Bruno Haible via Bug reports for the GNU Texinfo documentation system
    • ... Patrice Dumas
  • &quo... Bruno Haible via Bug reports for the GNU Texinfo documentation system
    • ... Patrice Dumas
      • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
        • ... Patrice Dumas
          • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
            • ... Patrice Dumas
              • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
              • ... Patrice Dumas

Reply via email to