From owner-freebsd-current Tue Sep 15 18:28:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA28937 for freebsd-current-outgoing; Tue, 15 Sep 1998 18:28:08 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA28932 for ; Tue, 15 Sep 1998 18:28:05 -0700 (PDT) (envelope-from tlambert@usr04.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.8/8.8.8) id SAA01849; Tue, 15 Sep 1998 18:27:37 -0700 (MST) Received: from usr04.primenet.com(206.165.6.204) via SMTP by smtp03.primenet.com, id smtpd001742; Tue Sep 15 18:27:29 1998 Received: (from tlambert@localhost) by usr04.primenet.com (8.8.5/8.8.5) id SAA04720; Tue, 15 Sep 1998 18:27:21 -0700 (MST) From: Terry Lambert Message-Id: <199809160127.SAA04720@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 01:27:21 +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 08:22:12 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 > > Just write your shell scripts portably; that way they will work on all > > platforms, back to Xenix 1.1.x, which didn't support shell functions. > > That is a wonderful idea... assuming that we have access to shell script > that other people write, and can go through making the needed changes. In > this specific case it is next to impossible. ??? Shell scripts are, by definition, source code. This is why /bin/sh is better than perl: no .so's that don't have source code. > What is one supposed to do when integrating a FreeBSD system into a > netwrok where the hosts will call 'rsh -l foo bar echo baz\c' and need > that to print out without the newline This is not a hypothetical, this is > what IRIX *does*. Set up an environment for the user "foo" that include a ~/bin in the path, and defines a ~/bin/echo that "does the right thing", i.e.: #!/bin/sh /bin/echo -e $* ? 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