-
Notifications
You must be signed in to change notification settings - Fork 139
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
Feature: implicit booleans #227
Comments
I know this is the jail.conf(5) syntax, but even there I consider it an anti-feature that makes the syntax more irregular without making it more readable (subjective). Have you verified that this syntax change would be unambiguous and backward compatible? |
I agree with @Crest. Jail syntax while resembles UCL is not compatible with it. This kind of construct is illegal in UCL.
The closest you can get to it is to add custom macros to UCL to allow setting variables, but even then the syntax will look different. |
I'm working on a set of macros to "fix that" as part of adding a |
@Crest are you working on UCL syntnax for jail configs? It could be easier to extend existing |
You could be right, but there're several annoying limitations to the current jail.conf syntax and its parser that aren't easy to fix in a backward compatible way e.g. how the |
It would be useful to allow a variable with no specified value to be implicitly a boolean true, such as in the FreeBSD jail.conf format:
Here
mount.devfs
andexec.clean
would be implicitlytrue
.The text was updated successfully, but these errors were encountered: