Re: Re: Handling of shell builtins in make(1)
From: Sergey Babkin (babkin_at_verizon.net)
Date: 05/24/05
- Previous message: Harti Brandt: "Re: Handling of shell builtins in make(1)"
- Maybe in reply to: Harti Brandt: "Re: Handling of shell builtins in make(1)"
- Next in thread: Harti Brandt: "Re: Re: Handling of shell builtins in make(1)"
- Reply: Harti Brandt: "Re: Re: Handling of shell builtins in make(1)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 24 May 2005 07:08:45 -0500 (CDT) To: Harti Brandt <hartmut.brandt@dlr.de>, Scott Long <scottl@samsco.org>
>From: Harti Brandt <hartmut.brandt@dlr.de>
>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
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Harti Brandt: "Re: Handling of shell builtins in make(1)"
- Maybe in reply to: Harti Brandt: "Re: Handling of shell builtins in make(1)"
- Next in thread: Harti Brandt: "Re: Re: Handling of shell builtins in make(1)"
- Reply: Harti Brandt: "Re: Re: Handling of shell builtins in make(1)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|