Bash script argument with spaces -


I am trying to use the Torrent-Video-Player script but it does not work with those files, In which are spaces, this is a Nautilus script.

  #! / Bin / bash xterm -e "peerflix" $ 1 "--vlc"   

"test.torrent" - & gt; OK "test test.torrent" - & gt; The prefix test can not be performed: no such file or directory was found

Replace the line

  xterm -e "peerflix" $ 1 "--vlc"   

to

  xterm -e "peerflix '$ 1 "--vlc"   

or

  xterm -e "prefix \" $ 1 \ "--vlc"   

The first form is equal to:

  xterm -e "peerflix" $ 1 "--vlc"   

It is not what you expect Were there.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -