=== sadmac_ is now known as sadmac [11:59] http://bazaar.launchpad.net/~upstart-devel/upstart/trunk-translations/revision/1212 [11:59] that's kinda cute ;) [13:05] nih_config_token doesn't accept token with any expansion [13:06] is there another function or this should be fixed? [13:06] ehm back [13:07] nih_config_next_arg is that function which calls nih_config_token with NIH_CONFIG_CNLWS delimiters [13:09] idea is in parse_job.c - stanza_utmp() get utmp arg with nih_config_next_arg() and then expand it with environ_expand() [13:10] 7win 21 [13:10] Doh. [14:26] plautrba: not sure what you mean? [14:29] Keybuk: I call nih_config_next_arg() on positition where is "${TTY#tty}\n" [14:29] and it returns "${TTY" [14:29] because there is '#' in delimiters [14:29] really, even though it's in quotes? [14:30] quotes are mine, just that is string [14:30] oh, right [14:30] that sounds likely [14:31] nih_config_token() would probably need to be extended to ignore # inside { .. } [14:31] so I think nih_config_token() should also take care about ${ .. } [14:31] yes [14:31] not just ignore # but work with everything in ${ } in same way as it would be quoted or so [14:31] could probably argue inside [ ... ] and ( ... ) too [14:32] dunno whether you'd treat ${ specially [14:33] utmp ${TTY#tty} [14:33] I mean compared to just { ... } [14:33] author [14:33] should that # be a comment? :) [14:34] i see [14:35] but that would be simply quoted [14:36] one could argue that the utmp example should be quoted [14:36] or maybe escaped - ${TTY\#tty} [14:37] right, either of those works [14:37] that's kinda ugly though [14:38] the reason obviously is that $... and ${...} aren't part of the config grammar [14:38] they're expansions selectively applied to certain arguments [14:38] well after config parsing === robbiew_away is now known as robbiew [15:07] Keybuk: responded to your comments [16:02] sadmac2: great, will take a look in a second [16:02] sadmac2: could you forward them to the LP review system if you haven't already? [16:02] mp+9968@code.launchpad.net [16:02] Keybuk: ok.. [16:03] Keybuk: I should have a patch for most of the stuff tonight. [16:04] thanks === robbiew is now known as robbiew-afk === robbiew-afk is now known as robbiew === robbiew is now known as robbiew_away