/srv/irclogs.ubuntu.com/2009/08/12/#upstart.txt

=== sadmac_ is now known as sadmac
Keybukhttp://bazaar.launchpad.net/~upstart-devel/upstart/trunk-translations/revision/121211:59
Keybukthat's kinda cute ;)11:59
plautrbanih_config_token doesn't accept token with any expansion13:05
plautrbais there another function or this should be fixed?13:06
plautrbaehm back13:06
plautrbanih_config_next_arg is that function which calls nih_config_token with NIH_CONFIG_CNLWS delimiters13:07
plautrbaidea is in parse_job.c - stanza_utmp() get utmp arg with nih_config_next_arg() and then expand it with environ_expand()13:09
soren7win 2113:10
sorenDoh.13:10
Keybukplautrba: not sure what you mean?14:26
plautrbaKeybuk: I call nih_config_next_arg() on positition where is "${TTY#tty}\n"14:29
plautrbaand it returns "${TTY"14:29
plautrbabecause there is '#' in delimiters14:29
Keybukreally, even though it's in quotes?14:29
plautrbaquotes are mine, just that is string14:30
Keybukoh, right14:30
Keybukthat sounds likely14:30
Keybuknih_config_token() would probably need to be extended to ignore # inside { .. }14:31
plautrbaso I think nih_config_token() should also take care about ${ .. }14:31
plautrbayes14:31
plautrbanot just ignore # but work with everything in ${ } in same way as it would be quoted or so14:31
Keybukcould probably argue inside [ ... ] and ( ... ) too14:31
Keybukdunno whether you'd treat ${ specially14:32
plautrbautmp ${TTY#tty}14:33
KeybukI mean compared to just { ... }14:33
Keybukauthor <foo@#bar.com>14:33
Keybukshould that # be a comment? :)14:33
plautrbai see14:34
plautrbabut that would be simply quoted14:35
Keybukone could argue that the utmp example should be quoted14:36
plautrbaor maybe escaped - ${TTY\#tty}14:36
Keybukright, either of those works14:37
Keybukthat's kinda ugly though14:37
Keybukthe reason obviously is that $... and ${...} aren't part of the config grammar14:38
Keybukthey're expansions selectively applied to certain arguments14:38
Keybukwell after config parsing14:38
=== robbiew_away is now known as robbiew
sadmac2Keybuk: responded to your comments15:07
Keybuksadmac2: great, will take a look in a second16:02
Keybuksadmac2: could you forward them to the LP review system if you haven't already?16:02
Keybukmp+9968@code.launchpad.net16:02
sadmac2Keybuk: ok..16:02
sadmac2Keybuk: I should have a patch for most of the stuff tonight.16:03
Keybukthanks16:04
=== robbiew is now known as robbiew-afk
=== robbiew-afk is now known as robbiew
=== robbiew is now known as robbiew_away

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!