Fix: don't use fileread() directly in /#21
Conversation
In an MCR environment directly reading a file from / fails, work around that.
|
This is indeed very odd - it seems to return the (compiled) content of a file
|
Sure, I can catch this and amend the PR.
I'm a bit puzzled here. When and where should the hash be written, exactly? Wouldn't this only work in the Dockerfile (assuming it is always build from within a git repo) or circleCI. |
|
Thanks! If I'm not mistaken, there wouldn't be any |
Matlab/MCR is doing a weird thing (there should be a name for it) when using
fileread()on a file directly in/, which results in the-v/--versionswitch to output garbage on the terminal.Minimal example:
However, adding a second
/resulting in//version, everything works out again:This trivial PR puts
versionin SPM_DIR, as I couldn't find words for a comment explainingfileread('//version')