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


Groups > gnu.bash.bug > #16481 > unrolled thread

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

Started byEli Schwartz <eschwartz@archlinux.org>
First post2020-06-29 08:06 -0400
Last post2020-06-29 08:06 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#16481 — Re: Undocumented feature: Unnamed fifo '<(:)'

FromEli Schwartz <eschwartz@archlinux.org>
Date2020-06-29 08:06 -0400
SubjectRe: Undocumented feature: Unnamed fifo '<(:)'
Message-ID<mailman.636.1593432397.2574.bug-bash@gnu.org>

[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

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web