Closed fredericmorin closed 10 years ago
Hi @fredericmorin, Sometimes you need to use an argument such as "-e"... ...but if you use /bin/echo it might solve your problem too. May the force be with you! ;)
Ah nice, that seems to do it. I'll submit a patch
Cool ;)
PS: @fredericmorin, did you test it on different platforms ? (one of my 2 suggestions might not work everywhere and it might be the "-e")
Yes I did test on both OSX and ubuntu both proposed solution. /bin/bash doesnt work on ubuntu(linux) adding -e works
Awesome (I have Ubuntu 12.04 and I think I have to use /bin/echo but my version is old)
When using this setup on Ubuntu 13.10, I am not able to replicate this problem, and make flash.jlink correctly inserts proper newlines. I tested -e on the only OS X machine I have access to, and it didn't work, so I'm honestly a little at loss...
Anyway, after Googling a little, I found this, so I just pushed a commit which replaces the use of echo with printf instead, which as far as I can see works both on Ubuntu and OS X. Let me know if you see any further problems with this!
That works great ! Good idea. Thanks !
I hlnd,
Many thanks for you project. It's very usefull to us for quite some times now and works very well.
Except I've got this bug on ubuntu where character expansion from the flash makefile target that writes the jlink flash command file does not get expanded.
I'm talking more precisely about this snippet:
When I look at the result of this on my OSX machine, the flash.jlink file contains
Which is OK, but when I do the same thing on ubuntu, the flash.jlink file contains:
I tried looking on google about this but luck yet.
Thanks for your help !