bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No such device or address when opening /dev/fd/<x> on opened /dev/tc


From: konsolebox
Subject: Re: No such device or address when opening /dev/fd/<x> on opened /dev/tcp socket
Date: Tue, 6 Apr 2021 04:00:22 +0800

On Tue, Apr 6, 2021 at 2:46 AM Chet Ramey <chet.ramey@case.edu> wrote:
> There's no guarantee that file descriptors opened with socket(2) show up in
> /dev/fd. Bash doesn't emulate /dev/fd if the system provides it, so it's up
> to the OS on those systems whether they do or not.
>
> It doesn't generate that error on macOS, for instance, which has /dev/fd.

Thanks. I'll take note of it for future reference.


-- 
konsolebox



reply via email to

[Prev in Thread] Current Thread [Next in Thread]