From owner-freebsd-arch@FreeBSD.ORG Tue May 24 12:08:47 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 CEC7A16A41C for ; Tue, 24 May 2005 12:08:47 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6B9643D1F for ; Tue, 24 May 2005 12:08:47 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms076.mailsrvcs.net ([192.168.1.1]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IGZ00H9JTQL68B3@vms042.mailsrvcs.net> for arch@freebsd.org; Tue, 24 May 2005 07:08:45 -0500 (CDT) Date: Tue, 24 May 2005 07:08:45 -0500 (CDT) From: Sergey Babkin To: Harti Brandt , Scott Long Message-id: <21970515.1116936525835.JavaMail.root@vms076.mailsrvcs.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Cc: arch@freebsd.org Subject: 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 12:08:47 -0000 >From: Harti Brandt >On Mon, 23 May 2005, Scott Long wrote: > >SL>> Opinions? >SL>> >SL>> harti >SL> >SL>4. Separate /bin/sh into a front end and back end (libsh) and include libsh >SL>into make. >SL> >SL>(running and hiding as I hit the 'send' key) > >Would there be other uses for this? Yes, I think it could be useful for many programs. Or one more option: add a flag to shell that will make it exit after any command returning non-0 status (at the ";" point, as opposed to "&&", "||" and such). Then make could just pass all the commands to the shell in one go. And it would be very useful for all kinds of sysadmin scripts as well where explicitly checking for the results of every command is a pain. Even with make it would be a big improvement, since in the current format a command failing inside a "for" loop won't cause make to stop unless explicitly programmed so, like: target: dependencies for ... ;\ do \ cmd || exit 1; \ done -SB