google-code-export / googlecl

Automatically exported from code.google.com/p/googlecl
2 stars 0 forks source link

Cant use new line in googlecl command #392

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.google youtube post ~/videos/cat-falls-down-stairs.avi Comedy --tags 
"currency of the internet" --summary "Poor whiskers takes a tumble.\nShe's 
fine, though, don't worry.\nThat's all."
2.Please note the "\n" inside summary

What is the expected output? What do you see instead?
I want to get:
Poor whiskers takes a tumble.
She's fine, though, don't worry.
That's all.

But it displays on Youtube as:
Poor whiskers takes a tumble.\nShe's fine, though, don't worry.\nThat's all.

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
The latest version of googlecl and gdata. OS is CentOS 5.5 with Python 2.5.5.

Please provide any additional information below.
I have posted this question on stackoverflow here:
http://stackoverflow.com/questions/4918067/bash-or-googlecl-new-line-in-a-string
-parameter
But the answers are not satisfactory yet.

Original issue reported on code.google.com by KanK...@gmail.com on 6 May 2011 at 10:08

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The problem is with shell passing variables into the python script. I think 
this should work. Just make a special variable in the shell for storing end of 
line:

n=$'\n'

then you should provide the params as:

google youtube post ~/videos/cat-falls-down-stairs.avi Comedy \ 
 --tags "currency of the internet" \
 --summary "Poor whiskers takes a tumble.${n}She's fine, though, don't worry.${n}That's all." 

Original comment by szy...@endpoint.com on 29 Dec 2012 at 4:03

GoogleCodeExporter commented 9 years ago

Original comment by szy...@endpoint.com on 29 Dec 2012 at 4:04