Re: Path conversion issue
Greetings, All! Ok, for those interested, solution for my specific case was found. macro:post print(view:? diff !?$UnixDiff$Options ((-c, -b etc.)):?! -x 'CVS' -x '.svn' -I '\\$Id.*\\$' --strip-trailing-cr -- ' + replace(PPanel.Path + / + PPanel.Current, \\, /) + ' ' + replace(APanel.Path + / + APanel.Current, \\, /) + ') Enter All line wraps are purely for code readability. It should work with any recent nighly of Far 2.0 -- WBR, Andrey Repin (anrdae...@freemail.ru) 22.08.2010, 7:53 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Path conversion issue
On Tue, Aug 17, 2010 at 5:18 AM, Larry Hall (Cygwin) wrote: On 8/16/2010 10:03 PM, Andrey Repin wrote: diff.exe -cdb -x CVS -x .svn -I \$Id.*\$ --strip-trailing-cr -- C:\...\php-tools\GalleryClass.php \\REMOTE\C$\...\php-tools\GalleryClass.php diff: \REMOTE\C$\...\php-tools\GalleryClass.php: No such file or directory Why it ate the leading backslash? '\' is a escape character for Cygwin just the way it is in UNIX/Linux. You either need to escape it or, better yet, use forward slashes. Or protect the backslashes: use single quotes '\\REMOTE\C$\...\php-tools\GalleryClass.php' -- Life is complex, with real and imaginary parts. Ok, it boots. Which means it must be bug-free and perfect. -- Linus Torvalds People disagree with me. I just ignore them. -- Linus Torvalds -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Path conversion issue
Greetings, Csaba Raduly! diff.exe -cdb -x CVS -x .svn -I \$Id.*\$ --strip-trailing-cr -- C:\...\php-tools\GalleryClass.php \\REMOTE\C$\...\php-tools\GalleryClass.php diff: \REMOTE\C$\...\php-tools\GalleryClass.php: No such file or directory Why it ate the leading backslash? '\' is a escape character for Cygwin just the way it is in UNIX/Linux. You either need to escape it or, better yet, use forward slashes. Neither is possible without sophisticated wrapper... This is called from menu entry in FAR Manager. :( I'd, however, try to get this through as a feature request... Or protect the backslashes: use single quotes '\\REMOTE\C$\...\php-tools\GalleryClass.php' Unfortunatelly... diff.exe -cdb -x CVS -x .svn -I \$Id.*\$ --strip-trailing-cr -- '\\REMOTE\C$\...\GalleryClass.php' 'C:\...\GalleryClass.php' diff: \REMOTE\C$\...\GalleryClass.php: No such file or directory -- WBR, Andrey Repin (anrdae...@freemail.ru) 17.08.2010, 22:48 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Path conversion issue
On 8/17/2010 2:58 PM, Andrey Repin wrote: Greetings, Csaba Raduly! diff.exe -cdb -x CVS -x .svn -I \$Id.*\$ --strip-trailing-cr -- C:\...\php-tools\GalleryClass.php \\REMOTE\C$\...\php-tools\GalleryClass.php diff: \REMOTE\C$\...\php-tools\GalleryClass.php: No such file or directory Why it ate the leading backslash? '\' is a escape character for Cygwin just the way it is in UNIX/Linux. You either need to escape it or, better yet, use forward slashes. Neither is possible without sophisticated wrapper... This is called from menu entry in FAR Manager. :( I'd, however, try to get this through as a feature request... Or protect the backslashes: use single quotes '\\REMOTE\C$\...\php-tools\GalleryClass.php' Unfortunatelly... diff.exe -cdb -x CVS -x .svn -I \$Id.*\$ --strip-trailing-cr -- '\\REMOTE\C$\...\GalleryClass.php' 'C:\...\GalleryClass.php' diff: \REMOTE\C$\...\GalleryClass.php: No such file or directory Seems like if you can change the quotes, you're very close to being able to invoke 'cygpath' to do the conversion you need. Since I know nothing about Far Manager, I don't know if this is a small step or a huge leap. But I figured I'd through it out there. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Path conversion issue
Greetings, Larry Hall (Cygwin)! diff.exe -cdb -x CVS -x .svn -I \$Id.*\$ --strip-trailing-cr -- C:\...\php-tools\GalleryClass.php \\REMOTE\C$\...\php-tools\GalleryClass.php diff: \REMOTE\C$\...\php-tools\GalleryClass.php: No such file or directory Why it ate the leading backslash? '\' is a escape character for Cygwin just the way it is in UNIX/Linux. You either need to escape it or, better yet, use forward slashes. Neither is possible without sophisticated wrapper... This is called from menu entry in FAR Manager. :( I'd, however, try to get this through as a feature request... Or protect the backslashes: use single quotes '\\REMOTE\C$\...\php-tools\GalleryClass.php' Unfortunatelly... diff.exe -cdb -x CVS -x .svn -I \$Id.*\$ --strip-trailing-cr -- '\\REMOTE\C$\...\GalleryClass.php' 'C:\...\GalleryClass.php' diff: \REMOTE\C$\...\GalleryClass.php: No such file or directory Seems like if you can change the quotes, you're very close to being able to invoke 'cygpath' to do the conversion you need. Since I know nothing about Far Manager, I don't know if this is a small step or a huge leap. Oh, God! You definitely want to know more! http://www.farmanager.com/index.php?l=en Basically, the 3 programs i'm running daily are: FAR, Opera and The Bat!. I hardly need anything else, be it regedit, control panel or code editor. FAR offer as much as humanly possible through multiple plugins, and if you'r daily work is with console and/or code writing, you are unlikely to find better alternative. But I figured I'd through it out there. I can see several ways to embed it here, but it'd be better if path translation could be more smooth. It's not always you're working with so flexible tools. -- WBR, Andrey Repin (anrdae...@freemail.ru) 18.08.2010, 1:30 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Path conversion issue
Greetings, All! Trying to find differences between local and remote file, I run into an issue: diff.exe -cdb -x CVS -x .svn -I \$Id.*\$ --strip-trailing-cr -- C:\...\php-tools\GalleryClass.php \\REMOTE\C$\...\php-tools\GalleryClass.php diff: \REMOTE\C$\...\php-tools\GalleryClass.php: No such file or directory Why it ate the leading backslash? Isn't it supposed to convert UNC path to proper one? User's guide tell me this shouldn't be an issue, or so I read it this way. Can anyone enlighten me on this matter, please? -- WBR, Andrey Repin (anrdae...@freemail.ru) 17.08.2010, 5:59 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Path conversion issue
On 8/16/2010 10:03 PM, Andrey Repin wrote: Greetings, All! Trying to find differences between local and remote file, I run into an issue: diff.exe -cdb -x CVS -x .svn -I \$Id.*\$ --strip-trailing-cr -- C:\...\php-tools\GalleryClass.php \\REMOTE\C$\...\php-tools\GalleryClass.php diff: \REMOTE\C$\...\php-tools\GalleryClass.php: No such file or directory Why it ate the leading backslash? Isn't it supposed to convert UNC path to proper one? User's guide tell me this shouldn't be an issue, or so I read it this way. Can anyone enlighten me on this matter, please? '\' is a escape character for Cygwin just the way it is in UNIX/Linux. You either need to escape it or, better yet, use forward slashes. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple