Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use printf rather than echo

The echo command is decidedly not portable. Instead of messing around lets use the nicely portable printf and thus avoid all our \n character issues due to differing implementations of echo.
  • Loading branch information...
commit 2dd1d8609ab143d27b2b1b942f7454b764163078 1 parent f43fdbb
@mxcl mxcl authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Makefile
View
2  Makefile
@@ -40,7 +40,7 @@ ebin/playdar.app: src/playdar.app
ESCRIPT="\nmain(_)\n"'-> io:format("default_config()->~p.~n",[file:consult("etc/playdar.conf.example")]),halt(0).'
.default_config.hrl.escript:
- echo $(ESCRIPT) > $@
+ printf $(ESCRIPT) > $@
src/playdar_config.erl: include/default_config.hrl
include/default_config.hrl: .default_config.hrl.escript
escript $< > $@
Please sign in to comment.
Something went wrong with that request. Please try again.