From owner-freebsd-current Wed Sep 16 13:24:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA28376 for freebsd-current-outgoing; Wed, 16 Sep 1998 13:24:16 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA28316 for ; Wed, 16 Sep 1998 13:23:58 -0700 (PDT) (envelope-from tlambert@usr04.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.8.8/8.8.8) id NAA10469; Wed, 16 Sep 1998 13:23:34 -0700 (MST) Received: from usr04.primenet.com(206.165.6.204) via SMTP by smtp02.primenet.com, id smtpd010452; Wed Sep 16 13:23:33 1998 Received: (from tlambert@localhost) by usr04.primenet.com (8.8.5/8.8.5) id NAA24335; Wed, 16 Sep 1998 13:23:25 -0700 (MST) From: Terry Lambert Message-Id: <199809162023.NAA24335@usr04.primenet.com> Subject: Re: 'bug' in /bin/sh's builtin 'echo' To: crossd@cs.rpi.edu (David E. Cross) Date: Wed, 16 Sep 1998 20:23:25 +0000 (GMT) Cc: tlambert@primenet.com, cracauer@cons.org, jmoss@ichips.intel.com, chet@po.cwru.edu, freebsd-current@FreeBSD.ORG In-Reply-To: from "David E. Cross" at Sep 15, 98 09:44:26 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I already tried that. echo is a shell builtin, and is given precedence > over binaries in the files system, I found no way to turn that > 'feature'off. man sh ... There are three types of commands: shell functions, builtin commands, and normal programs -- and the command is searched for (by name) in that or- der. They each are executed in a different way. ...so implement it as a shell function instead of a normal program. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message