lhmouse / nano-win

GNU nano text editor for Windows [WARNING: The master branch is constantly rebased and force-pushed so don't expect it to be steady!! -end WARNING]
https://files.lhmouse.com/nano-win/
GNU General Public License v3.0
210 stars 25 forks source link

Windows path convention does not work #38

Closed eabase closed 2 years ago

eabase commented 2 years ago

Rather how not to install on Windows-10.

The number one most important thing to notice, is that the file paths given in the include statements, in the .nanorc HAVE to be in the POSIX format. I.e. not using the windows back-slash convention. Therefore you must write it like this:

include "C:\mybin\nano\nanorc\*.nanorc"     # Windows paths does NOT work!
include "/mybin/nano/nanorc/*.nanorc"       # This works!

At this point I have no idea if this is a bug or new development. But it surely would have helped to have known this in advance, before spending hours trying to figure out why something that used to be obvious doesn't work.

@lhmouse
Please make this clear in your README.

lhmouse commented 2 years ago

The glob() function from GNU lib doesn't recognize backslashes in paths. Please file a PR if you think it is necessary.