Re: Re: Handling of shell builtins in make(1)

From: Sergey Babkin (babkin_at_verizon.net)
Date: 05/24/05

  • Next message: Harti Brandt: "Re: Re: Handling of shell builtins in make(1)"
    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"


  • Next message: Harti Brandt: "Re: Re: Handling of shell builtins in make(1)"

    Relevant Pages

    • Bash-4.0 available for FTP
      ... Unlike previous bash distributions, this tar file includes the formatted ... The shell has been changed to be more ... rigorous about parsing commands inside command substitutions, ... Changes have been made to the Readline library being released at ...
      (gnu.announce)
    • Why newbies dont RTFM...
      ... Even though I've used Linux before, I've never had to do any ... BASH BUILTIN COMMANDS ... last command exited within ... unless the shell is not exeâ ...
      (comp.os.linux.misc)
    • Re: Great SWT Program
      ... None of the nasty things that you have said or implied about me are at ... treat the file as input (manually invoking the command interpreter ... script, copy the line into that within the editor, exit, and invoke ... the shell script. ...
      (comp.lang.java.programmer)
    • Re: Shell function - accessing an Access secure db (.MDW file)
      ... > Hi - Does anyone know the correct syntax for the shell function. ... You can use the Shell command. ... To execute internal DOS command (Dir, Copy, ... Private Declare Function OpenProcess _ ...
      (microsoft.public.vb.general.discussion)
    • Re: ksh silently ignores function if mistakenly not autoloaded
      ... Here's the order of execution. ... This really takes place prior to command ... Shell scripts, with all their power, have one major drawback - they ... In the Korn Shell, there are two separate syntaxes for defining ...
      (comp.unix.shell)