Closed ghost closed 3 years ago
I'm not entirely sure what the best thing to do here is. It's nice that grpcmp
can operate on arbitrary groups, but I see why not being portable across locales is a problem for scripts. I pushed commit 052b881f222a6f346b6ba3490d310350be41eb87 which allows grpcmp
to use a -b
switch to use a builtin string rather than the system's group name, but obviously the problem with this approach is that grpcmp
needs to know about every well known string that the user might want to query. As of now I've only included Administrators, although this could potentially be a table of strings in future.
Let me know if you can see a better approach for this.
This should be fixed in 1.50, released today. Please let me know if there are further related issues.
On localized Windows, group "Administrators" is (often) renamed to something else, so Yori fails to detect administrator permissions. In user scripts,
grpcmp
says: