Closed jan-heck closed 4 years ago
Because you can type inline assembly language for interpretation at the command line, many tokens such as @
and -
are reserved. To enter a string which has reserved tokens at any point, you should put the name in quotes:
[ID=0 of 1][PC=0x8000000][3.3E+00V, 6.0E+01MHz] srecl "filename-with-hyphens.sr"
Loading S-RECORD to memory at address 0x8004000
[M] Done.
[ID=0 of 1][PC=0x8004000][3.3E+00V, 6.0E+01MHz]
I see -- I copied over a run.m
which didn't do so and didn't think of adding it. It makes perfect sense that there are illegal characters for filenames, but it took me quite some time to track it down (I was looking at other possible causes). Perhaps the invalid command
error could show what it considers to be the invalid command (like e.g. bash does if you type in a misspelt command), which would have made the cause of the problem immediately obvious.
Thanks for pointing out the solution, I'll change my script.
Describe the bug
srecl
cannot handle filenames with hyphen, and sunflower gives an invalid command error.To Reproduce Steps to reproduce the behavior: To demonstrate, take a working binary and copy it to a filename with a hyphen in it. I first run sf to load the working one, and then again with the copied and renamed version, and get an invalid command in the latter case.
Expected behavior Should handle filename with hyphen.
Screenshots (see terminal log above)
Host OS (please complete the following information):
You local changes (please complete the following information):
git diff
. In~/git/sflr/benchmarks/source/riscv_newton-raphson
:git remote -v
.Additional context