On Fri, Feb 22, 2019 at 12:54:54PM +0000, MacFH - C E Macfarlane wrote: > >>--exclude blah # exclude blah and *only* blah > >>--exclude +blah # exclude blah in addition to anything else > However, there is a problem, perhaps two, with that particular syntax in > GiP. The first is that the exclude option is a Regular Expression, so > the + sign has a special meaning, and gives an RE error when used as > above.
The + sign's special meaning is "one or more of the preceding character or group". Which means that if you see it at the beginning it can't possibly be a valid regex, so *must* have the special meaning of "add the rest of this to the list of exclusions". > The possible second is that on Windows machines + is a parameter > separator for some commands, for example COPY. That's a special feature of those commands, not a feature of Windows. > A tilde ~ might be a good choice for this, as, AFAIK, it is inert in > most operating systems; that is to say, I'm not aware of any special > meaning attached to it within > command lines. On its own it means the current user's home directory. Followed by other text it means that user's home directory. Followed by nonsense that doesn't match a username it's just a tilde: $ echo ~ /home/dc $ echo ~root /root $ echo ~macfh ~macfh -- David Cantrell | Reality Engineer, Ministry of Information We found no search results for "crotchet". Did you mean "crotch"? _______________________________________________ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer