Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Mar 2015 05:58:51 -0800
From:      Alfred Perlstein <alfred@freebsd.org>
To:        Gleb Smirnoff <glebius@FreeBSD.org>, Slawa Olhovchenkov <slw@zxy.spb.ru>, Baptiste Daroussin <bapt@FreeBSD.org>, 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
Message-ID:  <54F8611B.8070901@freebsd.org>
In-Reply-To: <20150305124959.GF10733@brick.home>
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>

next in thread | previous in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54F8611B.8070901>