Re: Fw: copy path :-)

John Ellis <[email protected]> Sat, 02 Dec 2006 21:39:29 -0500
Newsgroups gmane.comp.gnome.apps.gqview.devel
Message-ID <[email protected]>
Carles Pina i Estany wrote:

[quoting snipped, start of thread has discussion of xclip that led to this:]
>> #!/bin/bash
>>
>> TOTAL=""
>>
>> for i in "$@"
>> do
>>         TOTAL="$TOTAL \"$i\""
> 
> I think that is possible to escape from quotes (photos with quotes
> itself). So don't do it with photos with quotes or will fail (even
> execute something bad...)

GQview was not escaping filenames that contained quotes either, so it was 
broken higher up.

GQview 2.1.5 now escapes the four characters [ "`$\ ]. I do not know if one 
or more of these may be bash-isms but at least on tcsh it is broken with or 
without the 'fix', so there really is no change there.

Greetings,
John

-- 
John Ellis <[email protected]>

http://gqview.sourceforge.net <GQview> | http://hideseek.sourceforge.net
http://gqmpeg.sourceforge.net <GQmpeg> |     <Preferences Hide and Seek>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV