-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eepflash.sh fails with ~ in eeprom filename #76
Comments
I think this is expected behavior and not a bug: since you pass the parameters to sudo, the script then runs as user root and it tries to locate the eeprom.cs0.irq0.bin in the root user's home directory and referenced path. I don't see how this could be prevented. |
Shell expansion of ~ to $HOME (e.g. ~/filename), and TAB completion on the command line, doesn't work in the middle of a string. Accept -f filename and --file filename in addition to the usual -f=filename and --file=filename as a way around this problem. See: #76 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Having rediscovered this issue I've added support for passing the file name as a separate parameter, e.g. |
Shell expansion of ~ to $HOME (e.g. ~/filename), and TAB completion on the command line, doesn't work in the middle of a string. Accept -f filename and --file filename in addition to the usual -f=filename and --file=filename as a way around this problem. See: raspberrypi/hats#76 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
not quite sure if its a real problem, but using ~ is a convenient short hand at least.
doesn't work
does work
The text was updated successfully, but these errors were encountered: