- Update manual description for pattern rule search algorithm
[make.git] / tests / scripts / functions / shell
blob723cd0edf382e710d470c994616e09d36090d4d9
1 #                                                                    -*-perl-*-
3 $description = 'Test the $(shell ...) function.';
5 $details = '';
8 # Test shells inside rules.
9 run_make_test('.PHONY: all
10 all: ; @echo $(shell echo hi)
11 ','','hi');
14 # Test unescaped comment characters in shells.  Savannah bug #20513
15 if ($all_tests) {
16     run_make_test(q!
17 FOO := $(shell echo '#')
18 foo: ; echo '$(FOO)'
20               '', "#\n");
23 # Test shells inside exported environment variables.
24 # This is the test that fails if we try to put make exported variables into
25 # the environment for a $(shell ...) call.
26 run_make_test('
27 export HI = $(shell echo hi)
28 .PHONY: all
29 all: ; @echo $$HI
30 ','','hi');