Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16468
| 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 | Sun, 28 Jun 2020 12:06:10 -0400 |
| Lines | 87 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.560.1593360391.2574.bug-bash@gnu.org> (permalink) |
| References | <20200628134945.GB24863@medium.hauri> <CANaoh6KSJS8X73Zqj7M8TT6_gAOjGraZx1EaEVwUNN_=Yya3wQ@mail.gmail.com> <d1172623-25cb-bcf9-b9b5-b7bf3cb547f7@archlinux.org> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Jlpmxh7WrT20tR1vBOBOldLFci0d7FZAn" |
| X-Trace | usenet.stanford.edu 1593360391 25670 209.51.188.17 (28 Jun 2020 16:06:31 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-bash@gnu.org |
| 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=1593360375; bh=2qIKqbVOW/uLu9nxEfvYrkL3+5A/nGcvQc72zO5fijk=; h=Subject:To:References:From:Date:In-Reply-To; b=i2Qn0yfHB2UakxLAs0Iv2mlEMGW/jw6wewRVrs4DfnTIRjgI0i121yRYayFruiPhi I0ap1PRH4tm0rDLOsvs0MMhJlA7ipUjY062poCALT1niPfBTGMWmfJDk/fsj405Rda KwphScTpTTFTmzBMKIJwFG08fNLTJux+ZWcAGjNPSIA6ndKYkyXHPk+kLceMcJpPis q44wPwZBSGDTxHVhYJVH7gcWnQJ+16lOyKllldXZ2MZHVwRGpupVK6LZmE0YxeT+/6 vtI+FTsmptHpt3/R16aH2Te1bHagfbOnhZIWSVsyT+7pqf6x+/DcqKK2yNKqOOAmpZ VFTj4pBpEVleW/2pQDvzd3iqeN7x4Kp2Q44K7bt53ZK9J6JpYcPC9R4bUA76sV9qvd jQrvHSLxOlPRXf00KUoJ+oxTb6OcMQdotXaEYo9hEHzDQGrE/0SB29gNFhCDIqGcnS Qzkx7bRRXoGds4/o1lc/8JXg6RjwaWORPicmGCvmP41ttCuCMjsNkGwyFBiCz9l+6H fmDjIlMy1VExw6Eh4HsavvMlWb8z0s0hCONmHlXevsMr7SuU7cd55Va/xx1gg8ed2F 3sGD+RWDwv6WlTWMsnAg56WNL3U0RWOPD7q4/GtK4VRnSBF/9GamT2tyLNjir/XmCG xa2TnArg6tTjygq0O7Lid13k= |
| 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 | <CANaoh6KSJS8X73Zqj7M8TT6_gAOjGraZx1EaEVwUNN_=Yya3wQ@mail.gmail.com> |
| Received-SPF | pass client-ip=88.198.91.70; envelope-from=eschwartz@archlinux.org; helo=orion.archlinux.org |
| X-detected-operating-system | by eggs.gnu.org: First seen = 2020/06/28 12:06:22 |
| X-ACL-Warn | Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] |
| 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, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 | <d1172623-25cb-bcf9-b9b5-b7bf3cb547f7@archlinux.org> |
| X-Mailman-Original-References | <20200628134945.GB24863@medium.hauri> <CANaoh6KSJS8X73Zqj7M8TT6_gAOjGraZx1EaEVwUNN_=Yya3wQ@mail.gmail.com> |
| Xref | csiph.com gnu.bash.bug:16468 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On 6/28/20 11:55 AM, Dennis Williamson wrote:
> How is running your
>
> echo >&9 $_string
> read -t 1 -u 8 _out
>
> many times better than running your
>
> _out=$(date -d "$_string" +%s)
>
> many times?
>
> Why don't you just use a function?
>
> date_to_epoch () {
> date -d "$1" +%s
> }
>
> _out=$(date_to_epoch "$_string")
You seem to be suggesting that a dedicated function will reduce
boilerplate commands, resulting in more readable code.
You COMPLETELY failed to even read the reporter's message, which
specifically stated "In order to reduce forks and make some tasks a lot
quicker [...]"
Very plainly, the reporter does not care how much code is used, but does
care that $() forks a process. It's literally the entire point of the
discussion: to replace forking with redirection to fifos.
Now, you can argue that this should or should not be a goal, but it's
quite silly to conflate the goal with "your goal could be achieved by
using a function".
--
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User
Back to gnu.bash.bug | Previous | Next | Find similar
Re: Undocumented feature: Unnamed fifo '<(:)' Eli Schwartz <eschwartz@archlinux.org> - 2020-06-28 12:06 -0400
csiph-web