From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 23 23:45:27 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0633E1065678 for ; Sun, 23 Nov 2008 23:45:27 +0000 (UTC) (envelope-from lg.zevlg@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 87D788FC3A for ; Sun, 23 Nov 2008 23:45:26 +0000 (UTC) (envelope-from lg.zevlg@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so584916ugs.39 for ; Sun, 23 Nov 2008 15:45:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:to:subject:from :x-face:date:message-id:user-agent:mime-version:content-type; bh=3qjyxo+Hj2/dgO4IKg0y2CYOb0gmH6aVHJDP3vrMrUU=; b=KDW915oD2HH2vKkqLURc4IVVhxeY6anuq9R3+oMNr4tBpWlNcmkxBu/Mi7QCchTfGB oHJ4gKVW/ymDY/wHXOYIqCclbAvhlKxJXiV6cZ1OPozlglNfT+ZGS6OHpaY8xvM61zc8 +y7kXbDq/Hzp76P/bw9x18Tr2l/qXVs0XyG74= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:from:x-face:date:message-id:user-agent:mime-version :content-type; b=xPnD3EvBQzwBwB+9X6dkwIgIBmiLyazVJplP418haXmRFuFatIXnDGJMiL8ytGz1Zp 8TSSJWlUZ57CseNd2D5rHcnkto0c/YIjsAe7qGgPETLvU9nvTQXQJGEcXXYzmCKTP89j 3WDTjOuJMOFtCVgeFNXK6rNEu9dhaxzEKjQIQ= Received: by 10.103.193.13 with SMTP id v13mr858483mup.125.1227481958869; Sun, 23 Nov 2008 15:12:38 -0800 (PST) Received: from h1 (nat17.jdsl.mv.ru [89.239.131.241]) by mx.google.com with ESMTPS id 14sm4233437muo.9.2008.11.23.15.12.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 23 Nov 2008 15:12:38 -0800 (PST) Received: by h1 (sSMTP sendmail emulation); Mon, 24 Nov 2008 02:12:23 +0300 To: freebsd-hackers@freebsd.org From: Zajcev Evgeny X-Face: Y=JrMgb2CLEwY1XwvwUwNYC+.LVm+nEG>MTW+Rw]SYj!co:?k6(FjM5wf1Xcz&}'pEB3Sm^ b-ghtWTI%P/"GpTXGx!fSQ|i7}(m?b$6]_E|_`}UG2V8e&>k?.wVCwlixNEn3TXD-pCrf"\R\}5[#j =;*{~ou7s-VG14_t}Mw4TmbI/kff Date: Mon, 24 Nov 2008 02:12:22 +0300 Message-ID: <87vdueavft.fsf@h1.lan> User-Agent: Gnus/5.1008 (Gnus v5.10.8) SXEmacs/22.1.10 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Mon, 24 Nov 2008 02:37:23 +0000 Subject: `type' built-in command in /bin/sh X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Nov 2008 23:45:27 -0000 Hello there. I just hit into "problem" that built-in sh command type outputs to stdout when error occurs. I mean it returns non-0 status, but outputs to stdout! I think stderr has been made exactly for such purposes and `type' should use it in case of error .. what do you think? thanks -- lg