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

Re: bash, /dev/tcp и /dev/udp



On Fri, Feb 22, 2008 at 10:53:40PM +0500, Ky6uk wrote:
> *This message was transferred with a trial version of CommuniGate(r) Pro*
> Yauhen Kharuzhy пишет:
>> *This message was transferred with a trial version of CommuniGate(r) Pro*
>> On Fri, Feb 22, 2008 at 10:23:19PM +0500, Ky6uk wrote:
>>   
>>> *This message was transferred with a trial version of CommuniGate(r) Pro*
>>> Подскажите пожалуйста, почему в debian собирают bash с опцией,   
>>> отключающей эти "девайсы"?
>>>     
>>
>> С каких это пор баш имеет отношение к чему-то в /dev/ ?
> Не знаю с каких, но в 3-ей версии есть точно.
>
> man bash:
>
> Bash handles several filenames specially when they are used in  
> redirections, as described in the following table:
>
>              /dev/fd/fd
>                     If fd is a valid integer, file descriptor fd is  
> duplicated.
>              /dev/stdin
>                     File descriptor 0 is duplicated.
>              /dev/stdout
>                     File descriptor 1 is duplicated.
>              /dev/stderr
>                     File descriptor 2 is duplicated.
>              /dev/tcp/host/port
>                     If host is a valid hostname or Internet address, and 
> port is an integer port number or service name, bash attempts to open a 
> TCP connection to the corresponding socket.
>              /dev/udp/host/port
>                     If host is a valid hostname or Internet address, and 
> port is an integer port number or service name, bash attempts to open a 
> UDP connection to the corresponding socket.

Точно. Ну вот:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=65172


-- 
Yauhen Kharuzhy		jekhor _at_ gmail.com
			JID: jek@xdsl.by

A: No
Q: Should I quote below my post?


Reply to: