Path: csiph.com!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.unix.programmer,comp.lang.c Subject: Re: Piping to stdin Date: Mon, 14 Aug 2023 23:15:53 -0700 Organization: None to speak of Lines: 37 Message-ID: <877cpwn84m.fsf@nosuchdomain.example.com> References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <20230813200644.979@kylheku.com> <20230814215312.550@kylheku.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="09fbea63c7f3f6d2cf54fb60a378c312"; logging-data="2860257"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196QfHXAErrYmItWIYRrmCf" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:DW7KjUMdengAzWRR0ypgLdKdSX0= sha1:+I3fSgakE+eGw93GKWp59qlT7vw= Xref: csiph.com comp.unix.programmer:14326 comp.lang.c:172241 Kaz Kylheku <864-117-4973@kylheku.com> writes: > On 2023-08-15, Gary R. Schmidt wrote: >> On 15/08/2023 01:14, Kalevi Kolttonen wrote: >>> In comp.unix.programmer Kenny McCormack wrote: >>>> You know that - and I know that - but do they know that? >>> >>> It makes no difference. In the real world nobody has >>> files named '-'. >>> >>> br, >>> KK >> >> Ahah! You don't have users, do you? >> >> No doubt you also don't encounter filenames with spaces in them, or >> carriage returns, or other garbage. > > The interesction of: > > - Users who make filenames like "-foo" and "monthly forecast.xls" > > - Users who sit in a POSIX shell expanding wildcards like * > in the same directory. > > is probababy vanishingly nil, and the subset of those who do the > above in the same directory is even smaller. Don't forget about users who need to deal with files with arbitrary names, and who often find it convenient to `cd` to a directory containing such files. [...] -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */