1236769Sobrien# $Id: posix,v 1.1.1.1 2004/05/08 16:45:39 sjg Exp $
2236769Sobrien
3236769Sobrienall:	x plus subs err
4236769Sobrien
5236769Sobrienx:
6236769Sobrien	@echo "Posix says we should execute the command as if run by system(3)"
7236769Sobrien	@echo "Expect 'Hello,' and 'World!'"
8236769Sobrien	@echo Hello,; false; echo "World!"
9236769Sobrien
10236769Sobrienplus:
11236769Sobrien	@echo a command
12236769Sobrien	+@echo "a command prefixed by '+' executes even with -n"
13236769Sobrien	@echo another command
14236769Sobrien
15236769Sobriensubs:
16236769Sobrien	@echo make -n
17236769Sobrien	@${.MAKE} -f ${MAKEFILE} -n plus
18236769Sobrien	@echo make -n -j1
19236769Sobrien	@${.MAKE} -f ${MAKEFILE} -n -j1 plus
20236769Sobrien
21236769Sobrienerr:
22236769Sobrien	@(echo Now we expect an error...; exit 1)
23236769Sobrien	@echo "Oops! you shouldn't see this!"
24236769Sobrien
25