2002-Aug-30
Second day of writing xui.c. It parses a simple standard input and generates a GUI interface (with Xaw widgets). So I have slowly learning Xt Intrinsics and Athena Widgets.
I used indent to format my code. I have a ~/.indent.pro indent configuration file.
Noticed many times that an /etc/rc.d/ script doesn't report on bogus arguments. I send-pr'd misc/18119: rc.d script doesn't do anything with bogus argument. I provided a patch so it always checks each argument. Then only does checkyesno ${rcvar} for "start". Then it checks for $_rc_fast_run to guess if interactive or not (to output a warning).
This changes the functionality of an rc.d script because all commands can be used even if not set to YES; for example:
$ /etc/rc.d/sendmail restart sendmail not running? (check /var/run/sendmail.pid). sendmail is not configured to start.I think that is okay behavior. But if not, then it could check for rcvar is yes for each item (other than "rcvar").
Also send-pr misc/18120. If rc.d scripts command is not executable, then it should say so instead of silently doing nothing Sent fix:
warn "${command} is not executable."