Handling of shell builtins in make(1)

Sergey Babkin babkin at verizon.net
Tue May 24 09:42:08 PDT 2005


>From: Harti Brandt <hartmut.brandt at dlr.de>

>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


More information about the freebsd-arch mailing list