diff --git a/bopher-ng.sh b/bopher-ng.sh index 7c1c67e..b74b8bf 100755 --- a/bopher-ng.sh +++ b/bopher-ng.sh @@ -66,7 +66,7 @@ trap clear_term INT # fetch any Gopher resource gophetch() { # args: host, port, selector[, input] - exec 4<>/dev/tcp/$1/$2 # bind the descriptor 3 to a /dev/tcp pseudo-device + exec 4<>/dev/tcp/$1/$2 # bind the descriptor 4 to a /dev/tcp pseudo-device if [[ -z "$4" ]]; then printf '%s\r\n' "$3" >&4 # send the selector string (printf is more reliable) else