WINGs: Add wshellquote()
commitb5ed9841bc60b54b537a120da3ba953d2edc1c25
authorTamas TEVESZ <ice@extreme.hu>
Tue, 12 Oct 2010 16:38:45 +0000 (12 18:38 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 12 Oct 2010 21:24:45 +0000 (12 23:24 +0200)
tree5620894467a33abdd2b7fae33d067d4d9be661ba
parent3f8bba8064c3a172f65883724c9d9d802f2fd190
WINGs: Add wshellquote()

Transforms its argument so that the result is safe to pass to the shell
as an argument.

With very heavy inspirations from NetBSD's shquote(3),
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/gen/shquote.c?annotate
http://man.netbsd.org/cgi-bin/man-cgi?shquote

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
WINGs/WINGs/WUtil.h
WINGs/string.c