Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16481

Re: Undocumented feature: Unnamed fifo '<(:)'

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Eli Schwartz <eschwartz@archlinux.org>
Newsgroups gnu.bash.bug
Subject Re: Undocumented feature: Unnamed fifo '<(:)'
Date Mon, 29 Jun 2020 08:06:15 -0400
Lines 73
Approved bug-bash@gnu.org
Message-ID <mailman.636.1593432397.2574.bug-bash@gnu.org> (permalink)
References <346bda2f-83dc-afda-d911-9688daefb10e@archlinux.org> <d1172623-25cb-bcf9-b9b5-b7bf3cb547f7@archlinux.org> <20200628134945.GB24863@medium.hauri> <CANaoh6KSJS8X73Zqj7M8TT6_gAOjGraZx1EaEVwUNN_=Yya3wQ@mail.gmail.com> <6427.1593375682@jinx.noi.kre.to> <19917.1593425185@jinx.noi.kre.to> <d5cf5f49-7a3b-7b93-2c14-729719a0b87a@archlinux.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uh1AO3q4LV3YxF8lYE082mXMMCTJmQAIb"
X-Trace usenet.stanford.edu 1593432398 9337 209.51.188.17 (29 Jun 2020 12:06:38 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To Robert Elz <kre@munnari.OZ.AU>
Envelope-to bug-bash@gnu.org
X-Spam-BL-Results
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1593432382; bh=uK9AKjUq18LaKmZSRV65s5pvs71lLhMnNL9VhW4Cc3g=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=uc4z2hP3TOdieu87R5x4GLnk5Z4gkwn0JMNySmzqIs9z09sa2Ebkk2DME+a4vPck/ 7C/0pQydlV7jxwuwkxHwv7p3vKT8Usb6k4+cVRULWc1I39JqVvrkTOZu9PR53zRjdb 48ORomzuQCx+zYOK7ZUN5AD59HPAwadoYGAX9NpbAi7YtWoYXHH8Rs6zASmhF0rag1 lV5YMN5Txir+DyPTSvnXdaU8tFyNYW0VyTU5RvSmCIILEdwhukagSv5z3FyfpAKxUi NDvxqTxJJMwlaK6Re6klWrFdmm3OHTDCbNV355SaEHqCOV9MyqiTolHc0NXGXrJD9i od01NSodyzpWa3v3e1HMuPWvDkMP2F7Vihc7PQdbBIK0uQIcQm9Yp9Uvi4w8wf0Hca KZHQRK6iIru1OE8WUKBqNuAtNHXKGQzWaz59WI4NacbJhbSefOX9LsNwSi6i1iw+u5 YsgLPDJVc7ts7PsBsJZKKIkcNxNjbm29SU9mEjmhL72QBEI9ZgT0/SchtbW7cfyOlw jn+/c0UPIskWLHKWKWIdGJ20zAr1ojkE5zQjXeVyk1OwtdBmNajkCYNy8EYKdU5VIq 6ir+8ZHgc77ocdArkp5SujpBpvZ8+44/LJG1wcaDEEFb3zjx7u8wHBcKmtgrc0zLq5 LJ+VOUBVIyASolC23xq0fsC4=
X-Clacks-Overhead GNU Terry Pratchett
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0
In-Reply-To <19917.1593425185@jinx.noi.kre.to>
Received-SPF pass client-ip=2a01:4f8:160:6087::1; envelope-from=eschwartz@archlinux.org; helo=orion.archlinux.org
X-detected-operating-system by eggs.gnu.org: No matching host in p0f cache. That's all we know.
X-Spam_score_int -53
X-Spam_score -5.4
X-Spam_bar -----
X-Spam_report (-5.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN
X-Spam_action no action
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <d5cf5f49-7a3b-7b93-2c14-729719a0b87a@archlinux.org>
X-Mailman-Original-References <346bda2f-83dc-afda-d911-9688daefb10e@archlinux.org> <d1172623-25cb-bcf9-b9b5-b7bf3cb547f7@archlinux.org> <20200628134945.GB24863@medium.hauri> <CANaoh6KSJS8X73Zqj7M8TT6_gAOjGraZx1EaEVwUNN_=Yya3wQ@mail.gmail.com> <6427.1593375682@jinx.noi.kre.to> <19917.1593425185@jinx.noi.kre.to>
Xref csiph.com gnu.bash.bug:16481

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 6/29/20 6:06 AM, Robert Elz wrote:
> Perhaps, but that would be a bizarre way to accomplish that.   I got
> the impression that the assumption was that there would somehow be just
> one fork, no matter how many times the conversion was required.   I
> think that might be possible using bash - but not using date(1) to do
> the conversions, it would need a purpose written command which read date
> specs from stdin and wrote time_t's (in decimal) to stdout.

If we are going with purpose-written commands I'd advise the OP to write
a bash loadable builtin for date. There is already a strftime one, but
it only lets you convert an epoch to an arbitrary format.

And once we are in bash loadable builtins land, one can also add an
option to save the output into a bash variable (like printf -v) instead
of printing it to stdout. There are a couple of example loadable
builtins that do this sort of thing already.

No forks involved, not even one for the lifetime of the script.

-- 
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Undocumented feature: Unnamed fifo '<(:)' Eli Schwartz <eschwartz@archlinux.org> - 2020-06-29 08:06 -0400

csiph-web