From owner-freebsd-questions@freebsd.org Thu Oct 26 21:52:21 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C79D8E53D75 for ; Thu, 26 Oct 2017 21:52:21 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter06.peak.org (filter06.peak.org [69.59.194.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A086E6AFCD for ; Thu, 26 Oct 2017 21:52:21 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta02.peak.org ([207.55.16.112]) by filter06.peak.org ({0c47b2c3-829a-4f18-b445-de68be8d048d}) via TCP (outbound) with ESMTPS id 20171026214907804_0000 for ; Thu, 26 Oct 2017 14:49:07 -0700 X-RC-FROM: X-RC-RCPT: Received: from zmail-mta02.peak.org (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTPS id A24DD1142AE for ; Thu, 26 Oct 2017 14:49:02 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTP id 6960311429B for ; Thu, 26 Oct 2017 14:49:02 -0700 (PDT) Received: from zmail-mta02.peak.org ([127.0.0.1]) by localhost (zmail-mta02.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id K_A7PtICiNqh for ; Thu, 26 Oct 2017 14:49:02 -0700 (PDT) Received: from mailproxy-lb-06.peak.org (mailproxy-lb-06.peak.org [207.55.17.96]) by zmail-mta02.peak.org (Postfix) with ESMTP id 47E8F12C238 for ; Thu, 26 Oct 2017 14:44:15 -0700 (PDT) Received: from carlj by elm.localnet with local (Exim 4.89 (FreeBSD)) (envelope-from ) id 1e7pwj-000855-Dd for freebsd-questions@freebsd.org; Thu, 26 Oct 2017 14:44:13 -0700 From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: A request to segregate man pages for shell built-ins References: <20171027021115.A40402@sola.nimnet.asn.au> <20171026214620.bf8fcbf2.freebsd@edvax.de> X-Clacks-Overhead: GNU Terry Pratchett Date: Thu, 26 Oct 2017 14:44:13 -0700 In-Reply-To: <20171026214620.bf8fcbf2.freebsd@edvax.de> (Polytropon's message of "Thu, 26 Oct 2017 21:46:20 +0200") Message-ID: <86po99oa8i.fsf@elm.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 21:52:21 -0000 Polytropon writes: >> > Keep in mind some shells also offer a builtin replacement for >> > an existing binary. A good example is echo where a binary exists, >> > but the C Shell has its own internal echo, while BASH uses the >> > binary one: >> > >> > % which echo >> > echo: shell built-in command. >> > >> > $ which echo >> > /bin/echo >> >> Again, despite that, echo _is_ builtin to sh(1) - and has more options. > > That is correct (even though sh's "which echo" reports the binary); > sh's echo supports escape sequences using the -e option, while the > binary doesn't. 'Which' is an external for sh so it can't show builtin commands. Sh has the builtin 'type' command which is the equivalent of 'which' for csh. -- Carl Johnson carlj@peak.org