kana/mduem — Issue #2: test: "\" in "--exec '...'" causes failure on some shells
Author: kana
Created: 2012-02-20 09:21:49+00:00
State: open

```
$ uname -a
Linux ange 2.6.32-5-686 #1 SMP Thu Nov 3 04:23:54 UTC 2011 i686 GNU/Linux

$ bash --version
GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ make PROVE_OPTION='--verbose' test
t/beep-on-empty-line.t ..
ok 1 - smartpunc#map_to_trigger should not beep if the cursor will be moved to an empty line
1..1
ok
All tests successful.
Files=1, Tests=1, 0 wallclock secs ( 0.01 usr 0.00 sys + 0.07 cusr 0.01 csys = 0.09 CPU)
Result: PASS
t/api.vim .......................................
not found in 'runtimepath': "autoload/vspec.vim"
Error detected while processing function 1_main:
line 9:
E117: Unknown function: vspec#test
No subtests run
t/beep-on-empty-line.vim ........................
not found in 'runtimepath': "autoload/vspec.vim"
Error detected while processing function 1_main:
line 9:
E117: Unknown function: vspec#test
No subtests run
...

$ cd mduem; vim; git diff
diff --git a/Makefile b/Makefile
index 0bef16f..6ec8530 100644
--- a/Makefile
+++ b/Makefile
@@ -380,11 +380,8 @@ test: fetch-deps
ifneq '$(vim_script_repos_p)' ''
@if [ -z '$(TEST_TARGETS)' ] || [ -n '$(test_vim_targets)' ]; then \
prove \
- --ext '.vim' \
- $(PROVE_OPTIONS) \
- --exec './$(call get_dep_dir,vim-vspec)/bin/vspec \
- $(PWD) \
- $(foreach d,$(all_deps),$(call get_dep_dir,$(d)))' \
+ --ext '.vim' $(PROVE_OPTIONS) \
+ --exec './$(call get_dep_dir,vim-vspec)/bin/vspec $(PWD) $(foreach d,$(all_deps),$(call get_dep_dir,$(d)))' \
$(test_vim_targets); \
else \
true; \
```