Bash / Escaping quotes is driving me crazy . .

2016-02-20 Thread Philip Rhoades
People, This line correctly finds one MP3 but misses two FLACs: ssh localhost "find /home/phil/music/ambient/RobertGass+OnWingsOfSong/OmNamahaShivaya -maxdepth 1 -type f \\( -name "*.mp3" -o -name "*.m4a" -o -name "*.flac" \\)" Adding extra escapes fixes the problem: ssh localhost "fin

Re: Bash / Escaping quotes is driving me crazy . .

2016-02-20 Thread Gordon Messmer
On 02/20/2016 04:05 PM, Philip Rhoades wrote: . . but why is there only a problem with the "flac" OR? - all three files have at least one space in the filename: Your mistake seems to be believing that the shell can understand the way you're nesting quotes. It can't. Each unescaped quote you

Re: Bash / Escaping quotes is driving me crazy . .

2016-02-20 Thread John Wendel
On 02/20/2016 04:05 PM, Philip Rhoades wrote: People, This line correctly finds one MP3 but misses two FLACs: ssh localhost "find /home/phil/music/ambient/RobertGass+OnWingsOfSong/OmNamahaShivaya -maxdepth 1 -type f \\( -name "*.mp3" -o -name "*.m4a" -o -name "*.flac" \\)" Adding extra e

Re: Bash / Escaping quotes is driving me crazy . .

2016-02-20 Thread jd1008
On 02/20/2016 05:05 PM, Philip Rhoades wrote: People, This line correctly finds one MP3 but misses two FLACs: ssh localhost "find /home/phil/music/ambient/RobertGass+OnWingsOfSong/OmNamahaShivaya -maxdepth 1 -type f \\( -name "*.mp3" -o -name "*.m4a" -o -name "*.flac" \\)" Adding extra

Re: Bash / Escaping quotes is driving me crazy . .

2016-02-20 Thread Philip Rhoades
Gordon, Date: Sat, 20 Feb 2016 16:40:01 -0800 From: Gordon Messmer To: Community support for Fedora users Subject: Re: Bash / Escaping quotes is driving me crazy . . Message-ID: <56c90761.4070...@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed On 02/20/2016 04

Re: Bash / Escaping quotes is driving me crazy . .

2016-02-22 Thread Gordon Messmer
On 02/20/2016 07:18 PM, Philip Rhoades wrote: OK, that all makes sense but there is a further issue - I was trying to keep it simple - this whole line is inside a Ruby "system" command ie: system( "ssh .. " ) I can't use the second option because I need to use double quotes so that I can use

Re: Bash / Escaping quotes is driving me crazy . .

2016-02-22 Thread Cameron Simpson
On 21Feb2016 14:18, Philip Rhoades wrote: Date: Sat, 20 Feb 2016 16:40:01 -0800 From: Gordon Messmer [...] On 02/20/2016 04:05 PM, Philip Rhoades wrote: . . but why is there only a problem with the "flac" OR? - all three files have at least one space in the filename: Your mistake seems to

Re: Bash / Escaping quotes is driving me crazy . .

2016-02-22 Thread Philip Rhoades
People, Date: Sat, 20 Feb 2016 18:49:55 -0800 From: John Wendel To: users@lists.fedoraproject.org Subject: Re: Bash / Escaping quotes is driving me crazy . . Message-ID: <56c925d3.5040...@comcast.net> Content-Type: text/plain; charset=utf-8; format=flowed On 02/20/2016 04:05 PM,

Re: Bash / Escaping quotes is driving me crazy . .

2016-02-22 Thread Philip Rhoades
Gordon, Date: Mon, 22 Feb 2016 08:56:54 -0800 From: Gordon Messmer To: users@lists.fedoraproject.org Subject: Re: Bash / Escaping quotes is driving me crazy . . Message-ID: <56cb3dd6.2020...@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed On 02/20/2016 07:18 PM,

Re: Bash / Escaping quotes is driving me crazy . .

2016-02-22 Thread Philip Rhoades
Cameron, Date: Tue, 23 Feb 2016 08:39:07 +1100 From: Cameron Simpson To: p...@pricom.com.au, Community support for Fedora users Subject: Re: Bash / Escaping quotes is driving me crazy . . Message-ID: <2016013907.ga79...@cskk.homeip.net> Content-Type: text/plain; charset=us

Re: Bash / Escaping quotes is driving me crazy . .

2016-02-25 Thread Matthew Miller
On Sun, Feb 21, 2016 at 02:18:45PM +1100, Philip Rhoades wrote: > OK, that all makes sense but there is a further issue - I was trying > to keep it simple - this whole line is inside a Ruby "system" > command ie: Well that's pretty frightening. :) Have you considered using ruby's Net::SSH instead

Re: Bash / Escaping quotes is driving me crazy . .

2016-02-25 Thread Philip Rhoades
Matthew, Date: Thu, 25 Feb 2016 11:48:14 -0500 From: Matthew Miller To: p...@pricom.com.au, Community support for Fedora users Subject: Re: Bash / Escaping quotes is driving me crazy . . Message-ID: <20160225164814.ga21...@mattdm.org> Content-Type: text/plain; charset=us-asc