Date: Thu, 5 Mar 2015 13:49:59 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= <trasz@FreeBSD.org> To: Gleb Smirnoff <glebius@FreeBSD.org> Cc: svn-src-head@freebsd.org, Baptiste Daroussin <bapt@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, Slawa Olhovchenkov <slw@zxy.spb.ru> Subject: Re: svn commit: r279603 - in head: bin/rcp usr.bin/rlogin usr.bin/rsh Message-ID: <20150305124959.GF10733@brick.home> In-Reply-To: <20150305125501.GP17947@FreeBSD.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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: % cat /bin/nope cat: /bin/nope: No such file or directory
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150305124959.GF10733>