View Single Post
Old 02-07-2014, 06:39 AM   #8
ZioNemo
Enthusiast
ZioNemo began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Mar 2008
Device: HTC-p3000
Quote:
Originally Posted by kovidgoyal View Post
You should not be passing it as a single string, pass it as

'-f', 'comment string'

i.e. as two separte strings or if you want to use a single string use.

--field=comment
That's (almost) exactly what I'm doing.
Difference is just 'comment string' starts with "comments:"

Two strings:

1) "-f"
2) "comments:very long string containing whatever char like colons: normal or ":" escaped. newlines
like this and - -- ' , etc. etc."

The outermost '"' (quotes) are NOT par of actual string.

How should I escape (2)?
Will '\n' '\"' and similia be recognized?

TiA
ZioNemo is offline   Reply With Quote