-
-
Notifications
You must be signed in to change notification settings - Fork 7k
added support for '-' in filenames #1773
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
Conversation
Looks good to me! |
Would it possible to do something similar for libraries directories as well? I have helped dozens of beginners who can't get some library working because they did not realize that it was not allowed to have any special characters. |
-----BEGIN PGP SIGNED MESSAGE----- Directories are also supported by this change, I tested it. On 01.01.2014 17:15, Kristian Sloth Lauszus wrote:
iQIcBAEBAgAGBQJSxHnfAAoJEPFuaghsrAvJ0a0P/3ZeZdNkvMap5uwCdEtwgYaw |
Okay super. Could you add support for '.' in directories as well? |
-----BEGIN PGP SIGNED MESSAGE----- I am personally no friend of supporting dots in directories.
iQIcBAEBAgAGBQJSxJQaAAoJEPFuaghsrAvJwTgQAKMox2K3pMf36rtHyveBov1C |
I just tested this commit with a library with - in the (directory) name, works like a charm. Commit looks good to me as well, so please consider merging it for 1.5.6 :-) |
@oni303 we could do is just allow it if it is not in the beginning of the name. The reason why I want this is because I am a contributer to the USB Host Shield library: https://github.com/felis/USB_Host_Shield_2.0 and I have spent so much time explaining beginngers how they should rename the library before they can use it. |
Lauszus' suggestions seems reasonable. If we implement this, it should probably end up in a separate commit on top of the one already in this pullrequest, since they are separate changes with different complexity. @oni303, if you want to implement this, that would be great. You should be able to just add one more commit to the branch in your own repo and github will automatically add the commit here as well. |
is there a reason not to allow '-' at the beginning? |
I can imagine some commands might not like that (though usually that can be solved by using |
Hi, I added support for '.' and for '-' and forbid both as the first character |
Looks good to me. Perhaps you should rebase this branch and squash all commits together, since they're really just one logical change? |
ok now it is a single commit on top of the current master |
now it is also in the right coding style |
Looks good to me. Thanks @oni303! |
No more comments from my side either, thanks! |
added support for '-' in filenames
Thank you! Maybe this is something worth to include in 1.0.x too? |
Seems good to me, that makes it easier to actually use - in filenames without requiring users to use 1.5. |
I there is no disadvantage of including it into 1.0.x too. |
Oh well, it was already in 1.0.x. Cool. |
This adds support for minuses in filenames.
It is a cleaned up version of #1772