I think you should not escape any characters. You don't have to guess which characters are special for the particular shell. Just give the original name as you received it.
On 10/11/07 23:28, Bram Moolenaar wrote: > Zvi Har'El wrote: > > >> I feel vim has a bug in the case the name the file contain parentheses. >> The "%" string contains in this case backslashes. For example: >> >> >> $ls -l 'JVs America (article).html' >> -rw-r--r-- 1 rl gileadweb 31426 2007-11-10 19:16 JVs America (article).htm >> >> >> $ vi +'!/bin/echo "%"' +x -e -s 'JVs America (article).html' >> JVs America \(article\).html >> >> >> $ vi +'!/bin/ls "%"' +x -e -s 'JVs America (article).html' >> >> /bin/ls: JVs America \(article\).html: No such file or directory >> > > This is indeed inconsistent. Vim should either escape the space as > well, so that you can leave out the quotes, or not escape special > characters, so that you can use quotes. I'm not sure which one is the > best solution. > > -- 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 -~----------~----~----~----~------~----~------~--~---
