diff options
Diffstat (limited to 'tests/scripts/functions/shell')
-rw-r--r-- | tests/scripts/functions/shell | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/scripts/functions/shell b/tests/scripts/functions/shell index ecea4cf..723cd0e 100644 --- a/tests/scripts/functions/shell +++ b/tests/scripts/functions/shell @@ -11,6 +11,15 @@ all: ; @echo $(shell echo hi) ','','hi'); +# Test unescaped comment characters in shells. Savannah bug #20513 +if ($all_tests) { + run_make_test(q! +FOO := $(shell echo '#') +foo: ; echo '$(FOO)' +!, + '', "#\n"); +} + # Test shells inside exported environment variables. # This is the test that fails if we try to put make exported variables into # the environment for a $(shell ...) call. |