TTsWeb / upload

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

bash syntax error #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Uploading a torrent with () in the name ie. 
Roof_Light-Kirkwood_Gaps-(HPLL052)-WEB-2010-BNP

What is the expected output? What do you see instead?

-bash: syntax error near unexpected token `('

What version of the product are you using? On what operating system?

Latest version on Ubuntu 10.10

Original issue reported on code.google.com by forgie....@gmail.com on 14 Aug 2011 at 6:33

GoogleCodeExporter commented 9 years ago
Just an update, seems like adding "" around the () works ie

Roof_Light-Kirkwood_Gaps-"(HPLL052)"-WEB-2010-BNP

Original comment by forgie....@gmail.com on 18 Aug 2011 at 2:19

GoogleCodeExporter commented 9 years ago
when using special characters such as brackets you need to either escape them 
or quote them. This works the same as any other command line command, such as 
cd, cp or mv. If you copy/paste the name I would recommend using quotes and 
otherwise you can just use tab-completion on the command line. When using 
tab-completion the escape characters will automatically be added.

so this "problem" should be fixed if you use i.e.:
upload -c music/album "Roof_Light-Kirkwood_Gaps-(HPLL052)-WEB-2010-BNP"
upload -c music/album Roof_Light-Kirkwood_Gaps-\(HPLL052\)-WEB-2010-BNP

Note: The WebUI automatically puts the release to upload inbetween quotes so 
that should always work fine as well.

Original comment by code.or....@gmail.com on 24 Aug 2011 at 8:25