Re: Handling of shell builtins in make(1)

From: Sam Lawrance (boris_at_brooknet.com.au)
Date: 05/23/05

  • Next message: Jung-uk Kim: "Re: AMD64 NUMA-awareness?"
    To: Harti Brandt <harti@freebsd.org>
    Date: Tue, 24 May 2005 00:10:44 +1000
    
    

    On Mon, 2005-05-23 at 15:51 +0200, Harti Brandt wrote:
    > Hi all,
    >
    > I think I found a problem in the shell code in make(1), but I'm not sure
    > whether to fix it or not and how. The problem is as follows: in compat
    > mode (this is the default mode when make(1) is not called with -j) the
    > command lines of a target are executed by one shell per line (this is also
    > how Posix wants it). To reduce the number of shells make does an
    > optimisation: when the command line does not contain one of a pre-defined
    > set of meta characters and does not start with one of a predefined set of
    > shell builtins, make directly exec's the command instead of using an
    > intermediate shell. The problem is that the current list of builtins is
    > limited to:
    >
    > alias cd eval exec exit read set ulimit unalias umask unset wait
    >

    That explains some of ports/66342 for me.. in particular why setting
    "ECHO_CMD=echo -e" didn't perform entirely as I expected.

    _______________________________________________
    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: Jung-uk Kim: "Re: AMD64 NUMA-awareness?"

    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)