diff options
Diffstat (limited to 'makefile_escaping')
-rw-r--r-- | makefile_escaping/escaping_shell.mk | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/makefile_escaping/escaping_shell.mk b/makefile_escaping/escaping_shell.mk index 1be9c02..bc6afa2 100644 --- a/makefile_escaping/escaping_shell.mk +++ b/makefile_escaping/escaping_shell.mk @@ -9,13 +9,10 @@ escape = $(subst ','\'',$(1)) cwd := $(shell basename -- "$$( pwd )") -echo_cwd := printf '%s\n' '$(call escape,$(cwd))' -bash_cwd := bash -c '$(call escape,$(echo_cwd))' - simple_var := Simple value -compisite_var := Composite value - $(simple_var) - $(cwd) +composite_var := Composite value - $(simple_var) - $(cwd) .PHONY: test test: @printf '%s\n' '$(call escape,$(cwd))' - @printf '%s\n' '$(call escape,$(compisite_var))' + @printf '%s\n' '$(call escape,$(composite_var))' |