awesome.spawn: Accept tables as arguments
commit3c40d6b470378d33d7c45b3f8f1e5049fb80c282
authorUli Schlachter <psychon@znc.in>
Sun, 10 Mar 2013 13:54:58 +0000 (10 14:54 +0100)
committerUli Schlachter <psychon@znc.in>
Sun, 10 Mar 2013 13:54:58 +0000 (10 14:54 +0100)
tree27dc9e011a017b254b0624f3056ec6f67b809ba0
parent4c3bac07ecc36110187450252f52950141bca0ea
awesome.spawn: Accept tables as arguments

With this change, awesome.spawn() can be called with a table as its command line
argument. This gets rid of lots of problems with escaping the arguments. For
example, the following call is now possible:

  awesome.spawn({ "bash", "-c", "echo \"foo\"" })

Thanks to Ignas Anikevičius for inspiring me to this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
luadoc/awesome.lua
spawn.c