On Mon, Apr 15, 2019 at 07:33:53AM +1000, Cameron Simpson wrote: > On 15Apr2019 07:19, Cameron Simpson <c...@cskk.id.au> wrote: > > Think about it. You're invoking sed _once_. Its input can come from only > > one file. > > Actually, I lie. The way you're doing it "sed <filename" can only use one > file. Sed will work on many files, like almost any UNIX utility: > > sed .... /path/to/spooldir/*
I can confirm that without redirecting standard input and just putting the path as last argument works. And I can also confirm that with the redirection from standard input, the mentioned error message is still output. By the way, the error message (when redirecting) is in German (my locale), (I re-translated it into English) even when I put LC_ALL=C before the command. But that only happens here, with THIS precise sed command. If I use sed in another context all error messages are in English (if I use LC_ALL=C). May this be a bash i18n bug (a somewhat strange bug), a bash packaging bug of my distribution, I'm not sure where to send a bug report to. And the fact that bash (when invoking sed) does not accept < /path/* in itself is worth a bug report. Cheers, felixs