If the file name contains both spaces and parentheses, your solution
does not work.

~$ touch 'a (b) cd'                   
~$ vi +'!/bin/ls "%"' +x -e -s 'a (b) cd'
/bin/ls: a \(b\) cd: No such file or directory
~$ vi +'!/bin/ls %' +x -e -s 'a (b) cd'
/bin/ls: a: No such file or directory
/bin/ls: (b): No such file or directory
/bin/ls: cd: No such file or directory


On 10/11/07 19:40, Ilya Sher wrote:
> Zvi Har'El wrote:
>   
>> Hi,
>>
>> I feel vim has a bug in the case the name the file contain parentheses.
>> The "%" string contains in this case  backslashes.  For example:
>>
>>     
> [snip]
>   
>> $ vi +'!/bin/ls "%"' +x -e -s 'JVs America (article).html'
>>
>> /bin/ls: JVs America \(article\).html: No such file or directory
>>     
>
> Using % instead of "%" should solve the problem.
> $ vi +'!/bin/ls "%"' +x -e -s 'a(b)c'
> /bin/ls: a\(b\)c: No such file or directory
> $ vi +'!/bin/ls %' +x -e -s 'a(b)c'
> a(b)c
>
>
>   
>> Cheers,
>>
>> Zvi.
>>
>> -- 
>> Dr. Zvi Har'El      mailto:[EMAIL PROTECTED]    Department of Mathematics
>> tel:+972-54-4227607                  Technion - Israel Institute of 
>> Technology
>> fax:+972-4-8293388  http://www.math.technion.ac.il/~rl/    Haifa 32000, 
>> ISRAEL
>> "If you can't say somethin' nice, don't say nothin' at all." -- Thumper 
>> (1942)
>>
>>
>>     
>
>
>   

-- 
Dr. Zvi Har'El      mailto:[EMAIL PROTECTED]    Department of Mathematics
tel:+972-54-4227607                  Technion - Israel Institute of Technology
fax:+972-4-8293388  http://www.math.technion.ac.il/~rl/    Haifa 32000, ISRAEL
"If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui