Re: [ecasound] [PATCH] ecaconvert: escape input filenames

From: Alessandro Ghedini <alessandro@email-addr-hidden>
Date: Wed Dec 11 2013 - 19:12:10 EET

On Thu, Dec 05, 2013 at 09:55:46PM +0100, Alessandro Ghedini wrote:
> Hi,
> the attached patch, adds escaping of input filenames to ecaconvert (it simply
> replaces " " and "," with "\ " and "\\,").
> The code seems to work nicely, but is rather stupid and certainly not the most
> beautiful I've ever written (in my defence, C++ isn't really my thing), so if
> anyone has a better idea, please come forward.
> Also, I added it directly to ecaconvert instead of ecicpp_add_file_input()
> because I didn't want to risk breaking other stuff, but I can easily change
> this if desired.


perl -E '$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'

Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!

Ecasound-list mailing list

Received on Wed Dec 11 20:15:02 2013

This archive was generated by hypermail 2.1.8 : Wed Dec 11 2013 - 20:15:02 EET