opnsense-src/usr.bin/bmake/tests/shell/builtin/Makefile.test
Warner Losh d0b2dbfa0e Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
2023-08-16 11:55:03 -06:00

17 lines
421 B
Makefile

#
# In compat mode (the default without -j) a line that contains no shell
# meta characters and no shell builtins is not passed to the shell but
# executed directly. In our example the ls line without meta characters
# will really execute ls, while the line with meta characters will execute
# our special shell.
#
.SHELL: path="${.CURDIR}/sh"
.PHONY: builtin no-builtin
builtin:
@exec ls -d .
no-builtin:
@ls -d .