Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm creating alias to do few things and run into a problem: Alias executes couple commands and on success starts download of resulting url, which is being copied into clipboard. Everything works fine, until I get URL which is has quotes.

So, here what I've got:

alias dljk="command1 && command2 && aira2c $(pbcopy)" 

Everything works as expected if command2 puts into clipboard unquoted url, ie:

http://cdn.sstatic.net/apple/img/logo.png

In this case, I see in log following:

2013-01-06 16:19:51.718903 [DEBUG] [FeedbackURISelector.cc:85] FeedbackURISelector selected http://cdn.sstatic.net/apple/img/logo.png

But when I add quotes to this url, aria2c will result in error:

"http://cdn.sstatic.net/apple/img/logo.png"

But inn this case, I see in log following:

2013-01-06 16:21:15.672052 [DEBUG] [FeedbackURISelector.cc:85] FeedbackURISelector selected %22http://cdn.sstatic.net/apple/img/logo.png%22

Is there any workaround for this?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.