Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2012 20:45:11 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-stable@FreeBSD.ORG, cswiger@mac.com
Subject:   Re: devd problem with 9-stable
Message-ID:  <201206151845.q5FIjBht085039@lurza.secnetix.de>
In-Reply-To: <8F30E6C0-0FDB-46D2-9E2F-3A909B8B6182@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206151845.q5FIjBht085039>