[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "here strings" and tmpfiles
From: |
Greg Wooledge |
Subject: |
Re: "here strings" and tmpfiles |
Date: |
Wed, 20 Mar 2019 08:13:00 -0400 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Wed, Mar 20, 2019 at 07:36:41AM -0400, Daniel Kahn Gillmor wrote:
> How do you replicate 3<<<"$secret" with a pipeline?
Not strictly a pipeline, but:
3< <(printf %s "$secret")
This is actually preferred in many cases, because it doesn't add a
newline. <<< always adds a newline to the result, because it's
mimicking here documents, which always end in a newline due to
their syntax.
Re: "here strings" and tmpfiles, Daniel Kahn Gillmor, 2019/03/19
Re: "here strings" and tmpfiles, Robert Elz, 2019/03/19
Re: "here strings" and tmpfiles, Chet Ramey, 2019/03/22
Re: "here strings" and tmpfiles, Chet Ramey, 2019/03/22