From owner-freebsd-arch@FreeBSD.ORG Tue May 24 16:42:08 2005 Return-Path: X-Original-To: arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 787DE16A41C for ; Tue, 24 May 2005 16:42:08 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5286543D1F for ; Tue, 24 May 2005 16:42:08 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms074.mailsrvcs.net ([192.168.1.3]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IH000A9S6E7ONQ4@vms044.mailsrvcs.net> for arch@freebsd.org; Tue, 24 May 2005 11:42:07 -0500 (CDT) Date: Tue, 24 May 2005 11:42:07 -0500 (CDT) From: Sergey Babkin To: Harti Brandt , Sergey Babkin Message-id: <4494552.1116952927843.JavaMail.root@vms074.mailsrvcs.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Cc: arch@freebsd.org Subject: Re: Re: Re: Handling of shell builtins in make(1) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2005 16:42:08 -0000 >From: Harti Brandt >SB>>SL>4. Separate /bin/sh into a front end and back end (libsh) and include libsh >SB>>SL>into make. >SB>>SL> >SB>>SL>(running and hiding as I hit the 'send' key) >SB>> >SB>>Would there be other uses for this? >SB> >SB>Yes, I think it could be useful for many programs. > >Hmm. What program is executing shell lines? Anything that allows the user to enter a shell command to execute? Such as more, vi and others. It would be real neat if they could keep the shell variables and such between the commands. >SB>Or one more option: add a flag to shell that >SB>will make it exit after any command returning non-0 >SB>status (at the ";" point, as opposed to "&&", >SB>"||" and such). Then make could just pass all >SB>the commands to the shell in one go. And it would > >There is the -e flag which does exactly this. Well, the description in the Oh, I'm out of date again. -SB