3 ms·
> Is there a particular instance of yes/no in shell scripting that you had in mind? Yes! I see them all the time in various build scripts, especially for Slac
by yellowapple 4y ago
> Is there a particular instance of yes/no in shell scripting that you had in mind?
Yes!
I see them all the time in various build scripts, especially for Slackware packages / SlackBuild scripts; it's a pretty common convention to use yes/no values for enabling/disabling (respectively) various build options.
OpenBSD's rc.conf(.local) also uses "NO" to indicate that a service/daemon should be disabled entirely; for example, the default httpd_flags=NO in rc.conf entirely disables httpd - unless, of course, you re-enable it later with httpd_flags= in rc.conf.local. "YES" is also sometimes used, e.g. library randomization being enabled by default via library_aslr=YES.