[RFC] rc.d integration for the bluetooth subsystem

Maksim Yevmenkin maksim.yevmenkin at savvis.net
Tue Nov 8 10:47:20 PST 2005


Yar,

>>if expr "$_line" : "[a-zA-Z0-9_]*=" > /dev/null 2>&1 ; then
>>...
>>fi
>>
>>i do not really have any objection to this. since i already pass the 
>>value through eval i might as well pass the entire line.
> 
> And so the users will be able to use basic sh(1) tricks in the lines.

depending on one's position it may or may not be a good thing :)

>>>And AFAIK stdin to a while loop can be redirected w/o enclosing
>>>the loop in braces.
>>
>>sure, but it looked more clear (to me anyway) this way :)
> 
> Hmmm, I'm unsure if it worked at all ;-)  In sh(1) you need to
> place a ';' before '}' if there is no '\n' after the last command
> in braces.  That is, the sh(1) syntax dictates that you can write

it works. i tried these patches on my system. also there is a similar 
code in /etc/rc.subr (please see devfs_rulesets_from_file() function). 
but if it make sh(1) purists uncomfortable i certainly can change it :)

thanks,
max


More information about the freebsd-rc mailing list