Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail From: gazelle@shell.xmission.com (Kenny McCormack) Newsgroups: comp.unix.shell Subject: Re: Another 'What's the diff Q" (LDo will like this) Date: Tue, 17 Sep 2024 13:10:27 -0000 (UTC) Organization: The official candy of the new Millennium Message-ID: References: Injection-Date: Tue, 17 Sep 2024 13:10:27 -0000 (UTC) Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4"; logging-data="2212757"; mail-complaints-to="abuse@xmission.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: gazelle@shell.xmission.com (Kenny McCormack) Bytes: 1657 Lines: 30 In article , Janis Papanagnou wrote: .... >> Note that I use both constructs, as the mood suits me, but I just got to >> thinking that maybe <<< doesn't actually add any new functionality. > >It's actually a restriction since it doesn't allow (e.g.) to control >variable expansion (as is possible with escaping the tag ('EOF' in >your example, which prevents expansion, vs. unquoted/unescaped EOF ). Well, not really. I can always do: $ cmd << EOF $(fortune) EOF $ and/or: $ cmd <<< " $(fortune) " $ Same diff, innit? -- They say that Trump is a stupid man's idea of a clever man, a poor man's idea of a rich man, and a weak man's idea of a strong man. Well, Melania is an unclassy man's idea of classy.