mirror of
https://repo.or.cz/socat.git
synced 2025-07-15 23:53:25 +00:00
socks4echo.sh and socks4a-echo.sh hung with new bash with read -n
This commit is contained in:
parent
aed0fcd79e
commit
38ce0b9b46
3 changed files with 13 additions and 8 deletions
|
@ -11,11 +11,12 @@
|
|||
# socat tcp-l:1080,reuseaddr,crlf system:"socks4echo.sh"
|
||||
|
||||
# older bash and ksh do not have -n option to read command; we try dd then
|
||||
if echo a |read -n 1 null >/dev/null 2>&1; then
|
||||
HAVE_READ_N=1
|
||||
else
|
||||
#if echo a |read -n 1 null >/dev/null 2>&1; then
|
||||
# HAVE_READ_N=1
|
||||
#else
|
||||
# and newer bash (4.3) has some other problem with read -n
|
||||
HAVE_READ_N=
|
||||
fi
|
||||
#fi
|
||||
|
||||
if type socat >/dev/null 2>&1; then
|
||||
SOCAT=socat
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue