On 4/7/25 6:24 PM, A. James Lewis wrote:
I've not been around this mailing list all too long, so I don't know if
this has been debated before, but I have always attempted to avoid
using external programs where functionality within bash can meet a
requirement.  Doing this allows my scripts to be more reliable, and not
depend on those external tools being installed...

I have however found it extremely frustrating to open TCP connections
via /dev/tcp, because there appears to be no way to control the
timeout!  This means I cannot "try one server and move on to the next
if it's not responding" etc... the default timeout is quite long, so
even a simple script to check a list of servers for a response on a
given port is problematic.

Is this a feature which might be possible in a future version of Bash?

I'll look at it for a future version. One question: do you think a
connection timeout should be considered a redirection error?

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to