bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH] Unix domain socket filename redirection


From: Zartaj Majeed
Subject: Re: [PATCH] Unix domain socket filename redirection
Date: Tue, 20 Jun 2017 00:40:40 -0400

Attaching the patch usock.diff.txt



On Mon, Jun 19, 2017 at 11:36 PM, Eduardo A. Bustamante López
<dualbus@gmail.com> wrote:
> On Mon, Jun 19, 2017 at 07:30:42PM -0400, Z wrote:
>> This patch adds support for Unix domain sockets. A filename of the form
>> /dev/unixstream/path used in a redirection makes bash attempt to open a
>> connection to the Unix domain stream socket at /path. Similarly a filename
>> of the form /dev/unixdgram/path makes bash attempt to open a connection to
>> the Unix domain datagram socket at /path.
>
> Excuse my ignorance:
>
> - What would be an expected use case of this feature? /dev/tcp and
>   /dev/udp are commonly used because it allows the shell script writer
>   to interact with popular text based protocols like HTTP or SMTP. It
>   would seem that this UNIX domain socket patch targets a niche instead?
>
> - Why should this be integrated into the core of bash, and not provided
>   as a loadable builtin instead? It makes more sense to me to provide
>   this as an optional shell builtin, which also make the usage less
>   awkward (not a fan of the /dev/unixstream/the/path/is/here thing).
>
>
> By the way, the patch does not apply. It would seem like you copy-pasted
> the diff, so it got wrapped at some points and git is rejecting it.
>
> --
> Eduardo Bustamante
> https://dualbus.me/

Attachment: usock.diff.txt
Description: Text document


reply via email to

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