nano-for-windows
nano-for-windows copied to clipboard
Incorrect path read when nano tries to read global nanorc
I was trying to find where the global nanorc file was located (/etc/nanorc
equivalent), since only the ~/.nanorc
was documented in the README; I poked around with procmon and found that nano tries to read C:/Users/<user>/ProgramData/nanorc
rather than C:/ProgramData/nanorc
If I create the file above and fill it with garbage, nano believes itself to be reading C:/ProgramData/nanorc
As for a solution, rather than sticking with the C:/ProgramData/nanorc
it tries to read, I think nano should avoid polluting ProgramData with loose files and instead create a subdirectory like other programs do, ie something like this:
rather than this: