From owner-freebsd-questions@freebsd.org Mon Mar 8 15:20:06 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ECE365752A8 for ; Mon, 8 Mar 2021 15:20:06 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DvMTf20M3z4m3x for ; Mon, 8 Mar 2021 15:20:05 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id B2DF75C00E8 for ; Mon, 8 Mar 2021 10:20:04 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 08 Mar 2021 10:20:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=YO3sg4Unlfm3h1jSDJ5eF5Oo3VW huJ3i7SuRNDtXHUo=; b=HgxIGmsHBToEVk/Sl/lX23X66X+0N4fhYfH37XmFrtt GBxQuLaWOmwUmtpZHoKmEI5nemX2zvSLvR6udfg50efI4hwCo/OMKl+4hbe6Kn0n 7+97ukLSSUBGxwTaLOtjybTXDM2wR89cMjGuYSmIiRdtdKoEFQsjFP5DMkZTkjAu VOWeVD9axplwH34PdLaCGsiBGTEiHppNJph5QgTpOaKQlypvqRM4JaRUo3fhmqch lly7nKO1DMcioP0mitQoayLKlc+4P1CwVTMm0R70IyGnVXbxc/9MoL4cqHQcTvMK WUqJoly5gtNARlizjgFgAbx81sEZU3ij25NwRp9vCeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=YO3sg4 Unlfm3h1jSDJ5eF5Oo3VWhuJ3i7SuRNDtXHUo=; b=cL/kao+ygRR8D03IOUo1fG VhG5N7/Ba6wVWGdpkXurBNUqZT/ZqhnPyw+sbsuXIh7NZhm1gLpo94dFy1wEVoFv UelzvBe+w4MK5uEaUQ33ZKkBy5TXeFJ9Ut1g0kHwob6iobvD2Zaufde0kWpVdTPd 9k9dYgeDFPuy++aOqXFAAbXJuiCjLmJe4kCMXHzcI17dx0o8YIZC7uqMQpBxcg// imnAqKRpc4HEg7nwO4ieU+jEFqaGrolIW8chVdt9XBiUSx0CgIArHx4BMnGthvQZ c1IlVBBny5WhcY2Vst0FwKaJAfwZclLvCzA6Yj8hlaqDLmFuygWjfA65G6Tjo6mg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddugedguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesghdtre ertddtvdenucfhrhhomhepthgvtghhqdhlihhsthhsuceothgvtghhqdhlihhsthhsseii hiigshhtrdhnvghtqeenucggtffrrghtthgvrhhnpedtheeigfdvudefkeekvddtfedvte dttdekuddvgeevlefftdekffdujedvhfduteenucfkphepkedvrdejtddrledurddutddu necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthgvtg hhqdhlihhsthhsseiihiigshhtrdhnvght X-ME-Proxy: Received: from ceres.local (fws.zyxst.net [82.70.91.101]) by mail.messagingengine.com (Postfix) with ESMTPA id 1700524005D for ; Mon, 8 Mar 2021 10:20:03 -0500 (EST) Date: Mon, 8 Mar 2021 15:20:00 +0000 From: tech-lists To: freebsd-questions@freebsd.org Subject: Re: which is "better" - /dev/fd or FIFO Message-ID: Mail-Followup-To: freebsd-questions@freebsd.org References: <20210306204633.3be9720a@gumby.homeunix.com> <20210307145622717830089@bob.proulx.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XJ/sGbJAjCdbgli2" Content-Disposition: inline In-Reply-To: <20210307145622717830089@bob.proulx.com> X-Rspamd-Queue-Id: 4DvMTf20M3z4m3x X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=zyxst.net header.s=fm2 header.b=HgxIGmsH; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=cL/kao+y; dmarc=none; spf=pass (mx1.freebsd.org: domain of tech-lists@zyxst.net designates 66.111.4.25 as permitted sender) smtp.mailfrom=tech-lists@zyxst.net X-Spamd-Result: default: False [-5.21 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.25:from]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.25]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[zyxst.net:+,messagingengine.com:+]; NEURAL_HAM_SHORT(-0.51)[-0.506]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[66.111.4.25:from]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.25:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[zyxst.net:s=fm2,messagingengine.com:s=fm2]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[zyxst.net]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[66.111.4.25:from:127.0.2.255]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2021 15:20:07 -0000 --XJ/sGbJAjCdbgli2 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 07, 2021 at 03:13:14PM -0700, Bob Proulx wrote: >tech-lists wrote: >> Thanks for that. It explains partly why it's not enabled by default. >> But I wondered why it's there at all, what is the benefit of that >> functionality (if enabled) over what (in this case, bash-commander) it >> would use in its absence (presumably FIFO) > >Twice now you have written /dev/fd or FIFO but I don't see any >connection between those two things. =20 sorry, my error. confusing file descriptors/named pipes. Ignore FIFO. >Note that the use of /dev/fd is something that a script writer decides >they want to use or not. It's a new thing in the grand scheme of >geological time and I personally both 1) only rarely ever see its use >in scripts and 2) rather disprove of it because it isn't really a >portable feature. I have never felt the need to code using it myself. >So personally I would recommend not using it.. I always scrape those >out of scripts whenever I see that people have used them. YMMV. > >Note that bash will internally simulate /dev/fd if a real system one >is not provided. Pretty sure anyway. I have definitely used bash and >seen that feature noted even on systems without /dev/fd directory support. Basically, I'm asking why it's available to be enabled, and the reason I'm asking *that* is because I don't know if or why or in what scenario it would be "better". When I'm installing a port, if there are options available, I'll look at them and see if they're needed for my use case. I generally go for the minimum number of options to satisfy the use case requirement, because it usually makes life simpler. In order to do this, I need to have a grasp on what the options enable and why. In this case, i don't know the why, which is why I'm asking. --=20 J. --XJ/sGbJAjCdbgli2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAmBGQJgACgkQs8o7QhFz NAW81g//VuX+k9/ptdqgeFdGRXb3WcfATPBkLZsqIU6AuTd5ScE8ckO0i9mkoYUB RZnph2GxoUxVLvvD/Ky/C/EexzUBQCtuW3R/j/4qisGvBMr/+ZO25bnmecPfxKgP xcBXgcyPwb8K5bGiv0Z3HPrqztqtlgU93euGaXM/UCZ9HOfoaM4lSzAED5I6/2Vz kvo0XnxpwEXyzlJLCDVADpnacz/j9te9gEgUnRogbNerStQ84c8lTA3NlCiXXOew nxFlbgvjQZofZv8Yfqd9uYNOHCfNkGuiKDYFPxcuzqIIljXaxCic37+tHWzZMd/P Xg7Vojg+2/4JNniNrnaoCQDzGAIobM1b00RqMzVlqeKV5N9HgjMTOnGKYicu/p7C hHTeFejuy7HipbmBl4JxVtAZYnD9d69VNYiNLYtX0XNNIpy+uYefBQ+d+MzNz1vB zeyqhHB9hqd3YlvF2CE/KAPAsMz41Pact2wRmGo8+HAHALW6msqvQfrj1tLmO0wq 5KgpoU2niNrkkEgcjyxiS+SEZQSOnf8Jb4Ote5JXF5W6peWhunF8Znnw/4qhGykh Fb53wJvRLg/j+gwADw2fFYFMVpuz83Z1sZ6wFdHReWvk/pbyRS157dUPwR41WX7T L2FbvoTbYe3oWaeykOA6F41qM9qskUj8x/0RZJO+1a2t3QEZJjI= =fr3/ -----END PGP SIGNATURE----- --XJ/sGbJAjCdbgli2--