From owner-svn-src-all@FreeBSD.ORG Thu Mar 5 13:23:59 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 591DA99C; Thu, 5 Mar 2015 13:23:59 +0000 (UTC) Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com [IPv6:2a00:1450:400c:c00::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D1344756; Thu, 5 Mar 2015 13:23:58 +0000 (UTC) Received: by wggy19 with SMTP id y19so53263421wgg.13; Thu, 05 Mar 2015 05:23:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=eAdRnAmdZezbLitglY7BZJGwef+/GtEN7QAVqVDJp78=; b=j/Mv4js1UsnCRgPvgKgOifnqTCCV6SYPUbFv77YCFv2lpiitVNJmo+nv8z/2E8di24 RuBfmAYjhNt76IKLZyAyYJcsPNDUZ0Kjr27Po57P0TJc57+dvx8xi6+riRMwb5EYsxO3 iDM445o5NHnE47FvY+XlTmz+Cp61jgUmncWvCazOfv/B2zWmGJDUGYk+jNl9WtPS/Z0M ce0hYViNw4A1ENjs9yziCp5nO+1moKFD62Fcd7/WI/L81vFRNLLkt76KhdVVZofbGY3C VzzD60S6gSvZ1SDF1TwId9iGfjDHtER6ouI+Ns8NtNuWIGXf273lhITO3IoOhrb/+ADv X1qw== X-Received: by 10.195.12.71 with SMTP id eo7mr18800717wjd.3.1425561837228; Thu, 05 Mar 2015 05:23:57 -0800 (PST) Received: from brick.home (dgo34.neoplus.adsl.tpnet.pl. [83.23.170.34]) by mx.google.com with ESMTPSA id hv5sm10521604wjb.16.2015.03.05.05.23.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Mar 2015 05:23:56 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Thu, 5 Mar 2015 13:49:59 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: Gleb Smirnoff Subject: Re: svn commit: r279603 - in head: bin/rcp usr.bin/rlogin usr.bin/rsh Message-ID: <20150305124959.GF10733@brick.home> Mail-Followup-To: Gleb Smirnoff , Slawa Olhovchenkov , Baptiste Daroussin , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150305125501.GP17947@FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: svn-src-head@freebsd.org, Baptiste Daroussin , src-committers@freebsd.org, svn-src-all@freebsd.org, Slawa Olhovchenkov 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:23:59 -0000 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