Chuck Swiger wrote: > On Jun 15, 2012, at 11:23 AM, Oliver Fromme wrote: > > You can try to prepend a backslash, i.e. echo \$devnum. This > > isn't documented, but then again, using backslashes to continue > > strings that span multiple lines isn't documented either. > > Line continuations and escaping special chars like $ are in "man sh":
Yes, I know that, but the question is how devd(8) parses the action strings. The problem here is that we have multiple levels or parsing. First, devd reads the line, concatenates continuation lines (apparently -- it's not documented), expands devd variables, and *then* it passes the resulting string to the shell for further parsing and processing. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I have stopped reading Stephen King novels. Now I just read C code instead." -- Richard A. O'Keefe _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[email protected]"
