{"action":"created","issue":{"url":"https://api.github.com/repos/WolfgangMehner/vim-plugins/issues/23","labels_url":"https://api.github.com/repos/WolfgangMehner/vim-plugins/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/WolfgangMehner/vim-plugins/issues/23/comments","events_url":"https://api.github.com/repos/WolfgangMehner/vim-plugins/issues/23/events","html_url":"https://github.com/WolfgangMehner/vim-plugins/issues/23","id":72768748,"number":23,"title":"\"Run Script\" returns \"can't open script\" - issue with quotation marks?","user":{"login":"oli666","id":7488029,"avatar_url":"https://avatars.githubusercontent.com/u/7488029?v=3","gravatar_id":"","url":"https://api.github.com/users/oli666","html_url":"https://github.com/oli666","followers_url":"https://api.github.com/users/oli666/followers","following_url":"https://api.github.com/users/oli666/following{/other_user}","gists_url":"https://api.github.com/users/oli666/gists{/gist_id}","starred_url":"https://api.github.com/users/oli666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oli666/subscriptions","organizations_url":"https://api.github.com/users/oli666/orgs","repos_url":"https://api.github.com/users/oli666/repos","events_url":"https://api.github.com/users/oli666/events{/privacy}","received_events_url":"https://api.github.com/users/oli666/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-03T08:00:15Z","updated_at":"2015-05-03T10:58:17Z","closed_at":null,"body":"Good morning Wolfgang,\r\n\r\na quick question for you ... \r\n\r\nWhen running a script located in \"'I:/texte/_source_code/Perl/playground.p\" from within VIM I get the following error message (Windows 7, gvim 7.4 patch 1-712) \r\n\r\nC:\\Windows\\system32\\cmd.exe /c (C:\\Perl\\bin\\perl.EXE 'I:/texte/_source_code/Perl\r\n/playground.pl')\r\nConEmuC build 141208 x64. (c) 2009-2014, ConEmu.Maximus5@gmail.com\r\nStarting attach autorun (NewWnd=NO)\r\nCan't open perl script \"'I:/texte/_source_code/Perl/playground.pl'\": Invalid argument\r\nshell returned 22\r\n\r\n\r\nRunning the script from the command line works perfectly fine; the same is true for running it in Eclipse/EPIC.\r\n\r\nI was just wondering if it had anything to do with the single and double quotation marks (\" ' ... ' \") in : \r\n\r\n\r\nCan't open perl script \"'I:/texte/_source_code/Perl/playground.pl'\"\r\n \r\n\r\nUsing the following on the Windows command line would envoke the same issue: \r\n\r\n\r\nperl -w 'I:/texte/_source_code/Perl/playground.pl'\r\n\r\n\r\nwhile the following alternatives on Windows work fine:   \r\n\r\nperl -w I:/texte/_source_code/Perl/playground.pl\r\nperl -w \"I:/texte/_source_code/Perl/playground.pl\" \r\n\r\nIt is worth noting that using cygwin on Windows alows for all 3 alternatives (no quotes, single OR double quotes). \r\n\r\nI guess my question would be how I could change the single quote to a double quote when passing a script-name from VIM to the command. \r\n\r\nMany thanks in advance,\r\n\r\nOli\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/WolfgangMehner/vim-plugins/issues/comments/98468164","html_url":"https://github.com/WolfgangMehner/vim-plugins/issues/23#issuecomment-98468164","issue_url":"https://api.github.com/repos/WolfgangMehner/vim-plugins/issues/23","id":98468164,"user":{"login":"oli666","id":7488029,"avatar_url":"https://avatars.githubusercontent.com/u/7488029?v=3","gravatar_id":"","url":"https://api.github.com/users/oli666","html_url":"https://github.com/oli666","followers_url":"https://api.github.com/users/oli666/followers","following_url":"https://api.github.com/users/oli666/following{/other_user}","gists_url":"https://api.github.com/users/oli666/gists{/gist_id}","starred_url":"https://api.github.com/users/oli666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oli666/subscriptions","organizations_url":"https://api.github.com/users/oli666/orgs","repos_url":"https://api.github.com/users/oli666/repos","events_url":"https://api.github.com/users/oli666/events{/privacy}","received_events_url":"https://api.github.com/users/oli666/received_events","type":"User","site_admin":false},"created_at":"2015-05-03T10:58:17Z","updated_at":"2015-05-03T10:58:17Z","body":"The output is :\n\n \n\nI:/texte/_source_code/Perl/playground.pl \n\n \n\nFrom: Wolfgang Mehner [mailto:notifications@github.com] \nSent: Sonntag, 3. Mai 2015 12:27\nTo: WolfgangMehner/vim-plugins\nCc: oli666\nSubject: Re: [vim-plugins] \"Run Script\" returns \"can't open script\" - issue with quotation marks? (#23)\n\n \n\nI do not understand where the single quotes come from, but they seem to cause the problem. Could you open the file in Vim and then run\n\n:echo expand (\"%:p\")\n\non the Vim command line. What is the output? After that we can investigate further.\n\n—\nReply to this email directly or view it on GitHub <https://github.com/WolfgangMehner/vim-plugins/issues/23#issuecomment-98465340> .\n\n"}}