[Slackbuilds-users] Metacharacters in package names
didier at slint.fr
Thu Aug 23 09:06:37 UTC 2018
On 08/23/2018 08:33 AM, Chris Abela wrote:
> My intention was to solicit your reconsideration on the inclusion of metacharacters in package names. They are a nuisance, ugly and they break things. Which characters are acceptable? Would you also accept white spaces and semi-colons?
Let's distinguish between '+', spaces and semi-colons
'+' is special only in extended regular expression according to POSIX and can then be escaped, cf. §9.4.3 ERE Special Characters
The POSIX specification requires that sed supports the basic regular expressions but supporting the EREs is not required, cf. Regular Expressions in sed:
A BRE can always be used instead of an ERE as far as I know.
Anyway, the '+" character is used in names of packages shipped in Slackware:
didier[/var/log/packages]$ ls /var/log/packages|grep '+'
spaces an semi-colons instead shall be quoted if they are to represent themselves, cf. the POSIX specification, Shell Command Language §2.2 Quoting:
So in this case not using them in package names is wise.
All this being said I am not a SBo admin, and this is just my opinion.
More information about the SlackBuilds-users