From owner-svn-src-all@FreeBSD.ORG Thu Mar 5 13:54:57 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 79DFC6D1; Thu, 5 Mar 2015 13:54:57 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [IPv6:2001:470:1f05:b76::196]) by mx1.freebsd.org (Postfix) with ESMTP id 5F75CAD0; Thu, 5 Mar 2015 13:54:57 +0000 (UTC) Received: from AlfredMacbookAir.local (unknown [12.167.51.131]) by elvis.mu.org (Postfix) with ESMTPSA id 32852341F867; Thu, 5 Mar 2015 05:54:57 -0800 (PST) Message-ID: <54F8611B.8070901@freebsd.org> Date: Thu, 05 Mar 2015 05:58:51 -0800 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Gleb Smirnoff , Slawa Olhovchenkov , Baptiste Daroussin , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r279603 - in head: bin/rcp usr.bin/rlogin usr.bin/rsh References: <201503042201.t24M1jDG009278@svn.freebsd.org> <20150305114828.GK17947@FreeBSD.org> <20150305122103.GA90978@zxy.spb.ru> <20150305122359.GM17947@FreeBSD.org> <20150305123016.GO48476@zxy.spb.ru> <20150305123053.GN17947@FreeBSD.org> <20150305123349.GP48476@zxy.spb.ru> <20150305123548.GO17947@FreeBSD.org> <20150305124037.GR48476@zxy.spb.ru> <20150305125501.GP17947@FreeBSD.org> <20150305124959.GF10733@brick.home> In-Reply-To: <20150305124959.GF10733@brick.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2015 13:54:57 -0000 On 3/5/15 4:49 AM, Edward Tomasz NapieraƂa wrote: > On 0305T1555, Gleb Smirnoff wrote: >> On Thu, Mar 05, 2015 at 03:40:37PM +0300, Slawa Olhovchenkov wrote: >> S> > nc(1), which is a pure socket testing tool. For telnet(1) this >> S> > capability is a side effect. >> S> >> S> You don't try this in practice. >> S> % nc zxy.spb.ru 81 >> S> % >> S> % telnet zxy.spb.ru 81 >> S> Trying 195.70.199.98... >> S> telnet: connect to address 195.70.199.98: Connection refused >> S> telnet: Unable to connect to remote host >> S> >> S> nc is not usable. >> >> Yes, this how unix way works. Command has return value, or >> you can use '-v', of you want it to be chatty. > > Actually, not giving error message on error by default seems quite > broken to me. Standard UNIX utilities don't fail silently: > You need to read unix hater's handbook. :) -Alfred