4d3fc51f60
Its not posix compliant and serves very little purpose. With this change compat and jobs modes are consistent wrt how they treat each line of a script. Add support for the '+' command line prefix as required by posix. Lines prefixed with '+' are executed even when -n is given. [Actually posix says they should also be done for -q and -t] PR: Reviewed by: jmc
25 lines
529 B
Plaintext
25 lines
529 B
Plaintext
# $Id: posix,v 1.1 2004/05/07 08:12:16 sjg Exp $
|
|
|
|
all: x plus subs err
|
|
|
|
x:
|
|
@echo "Posix says we should execute the command as if run by system(3)"
|
|
@echo "Expect 'Hello,' and 'World!'"
|
|
@echo Hello,; false; echo "World!"
|
|
|
|
plus:
|
|
@echo a command
|
|
+@echo "a command prefixed by '+' executes even with -n"
|
|
@echo another command
|
|
|
|
subs:
|
|
@echo make -n
|
|
@${.MAKE} -f ${MAKEFILE} -n plus
|
|
@echo make -n -j1
|
|
@${.MAKE} -f ${MAKEFILE} -n -j1 plus
|
|
|
|
err:
|
|
@(echo Now we expect an error...; exit 1)
|
|
@echo "Oops! you shouldn't see this!"
|
|
|