s = "'This is a test'" for repeat in range(3): bq = bashquote() bq.add(s) s = bq.result() print s...then you get a string that you can eval 3 times without losing any quoting - except for here documents. As another example, you could pass that 3-deep quoting into three chained ssh's without losing the original quoting.
You can e-mail the author with questions or comments: