Skip to main content
6 events
when toggle format what by license comment
Jun 9, 2015 at 7:21 history edited Stéphane Chazelas CC BY-SA 3.0
fix brokeb printf|getline code.
Jun 8, 2015 at 21:39 history edited Gilles 'SO- stop being evil' CC BY-SA 3.0
cope with multiline strings in the printf method (thanks Stéphane Chazelas)
Jun 8, 2015 at 16:07 comment added cdosborn I meant the string s in the example.
Jun 8, 2015 at 16:04 comment added Stéphane Chazelas @cdosborn, well no, %s doesn't do any expansion. It's %b that does echo-like expansion. Also note that %b or echo expansion is different from the one done by awk (or the format argument of printf) for octal sequences: you need \011, \11 won't do.
Jun 8, 2015 at 15:34 comment added cdosborn @StéphaneChazelas, i'm only interested in one line (I should have mentioned). I think %b is unnecessary, if you replace it with just s then the escapes will be interpreted anyways.
Jun 8, 2015 at 1:40 history answered Gilles 'SO- stop being evil' CC BY-SA 3.0