Re: psql \e broken again - Mailing list pgsql-hackers
From | Bort, Paul |
---|---|
Subject | Re: psql \e broken again |
Date | |
Msg-id | 735D404BD9E7EB44B9CDFC27FC88809B0582D5BD@mail2.tmwsystems.com Whole thread Raw |
In response to | psql \e broken again (Peter Eisentraut <peter_e@gmx.net>) |
Responses |
Re: psql \e broken again
|
List | pgsql-hackers |
<p><font size="2">From: Peter Eisentraut [<a href="mailto:peter_e@gmx.net">mailto:peter_e@gmx.net</a>]</font><br /><fontsize="2">> </font><br /><font size="2">> Is there a Windows port of the command-line cvs tool? That </font><br/><font size="2">> would be a </font><br /><font size="2">> good thing to compare with.</font><br /><fontsize="2">> </font><p><font size="2">The one that I see most often ( and use here ) is CVSGUI ( <a href="http://www.wincvs.org/"target="_blank">http://www.wincvs.org/</a> ), which includes a CVS command-line client despitethe name. ( The command-line CVS might be from CVSNT, <a href="http://www.cvsnt.com/cvspro/" target="_blank">http://www.cvsnt.com/cvspro/</a>).</font><p><font size="2">So I thought I'd try a few scenarios, since Ihave it installed:</font><p><font size="2">U:\sandbox\docbook> REM DOUBLE-QUOTES IN COMMAND LINE:</font><br /><font size="2">U:\sandbox\docbook>set EDITOR=D:\Program Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe</font><br /><fontsize="2">U:\sandbox\docbook> cvs -d :sspi:pbort@cleqa.tmwsystems.com:/repo -e "%EDITOR%" commit -D xml_reindent.pl</font><br/><font size="2">'D:\Program' is not recognized as an internal or external command,</font><br /><fontsize="2">operable program or batch file.</font><br /><font size="2">cvs commit: warning: editor session failed</font><p><fontsize="2">U:\sandbox\docbook> REM DOUBLE-QUOTES IN ENVIRONMENT VARIABLE:</font><br /><font size="2">U:\sandbox\docbook>set EDITOR="D:\Program Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe"</font><br /><fontsize="2">U:\sandbox\docbook> cvs -d :sspi:pbort@cleqa.tmwsystems.com:/repo -e %EDITOR% commit -D xml_reindent.pl</font><br/><font size="2">'D:\Program' is not recognized as an internal or external command,</font><br /><fontsize="2">operable program or batch file.</font><br /><font size="2">cvs commit: warning: editor session failed</font><p><fontsize="2">U:\sandbox\docbook> REM DOUBLE-QUOTES IN BOTH:</font><br /><font size="2">U:\sandbox\docbook>cvs -d :sspi:pbort@cleqa.tmwsystems.com:/repo -e "%EDITOR%" commit -D xml_reindent.pl</font><br/><font size="2">Unknown command: `Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe'</font><p><fontsize="2">U:\sandbox\docbook> REM SINGLE-QUOTES INENVIRONMENT VARIABLE:</font><br /><font size="2">U:\sandbox\docbook> set EDITOR='D:\Program Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe'</font><br/><font size="2">U:\sandbox\docbook> cvs -d :sspi:pbort@cleqa.tmwsystems.com:/repo-e %EDITOR% commit -D xml_reindent.pl</font><br /><font size="2">Unknown command: `Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe''</font><p><fontsize="2">U:\sandbox\docbook> REM SINGLE-QUOTES INCOMMAND LINE:</font><br /><font size="2">U:\sandbox\docbook> set EDITOR=D:\Program Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe</font><br/><font size="2">U:\sandbox\docbook> cvs -d :sspi:pbort@cleqa.tmwsystems.com:/repo-e '%EDITOR%' commit -D xml_reindent.pl</font><br /><font size="2">Unknown command:`Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe''</font><p><font size="2">U:\sandbox\docbook> REM SINGLE-QUOTESIN BOTH:</font><br /><font size="2">U:\sandbox\docbook> set EDITOR='D:\Program Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe'</font><br/><font size="2">U:\sandbox\docbook> cvs -d :sspi:pbort@cleqa.tmwsystems.com:/repo-e '%EDITOR%' commit -D xml_reindent.pl</font><br /><font size="2">Unknown command:`Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe'''</font><p><font size="2">U:\sandbox\docbook> REM BACKSLASH-ESCAPESPACES:</font><br /><font size="2">U:\sandbox\docbook> set EDITOR=D:\Program\ Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe</font><br/><font size="2">U:\sandbox\docbook> cvs -d :sspi:pbort@cleqa.tmwsystems.com:/repo-e %EDITOR% commit -D xml_reindent.pl</font><br /><font size="2">Unknown command: `Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe'</font><p><fontsize="2">U:\sandbox\docbook> REM BACKSLASH-ESCAPESPACES AND DOUBLE-QUOTE ON COMMAND LINE:</font><br /><font size="2">U:\sandbox\docbook> set EDITOR=D:\Program\Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe</font><br /><font size="2">U:\sandbox\docbook>cvs -d :sspi:pbort@cleqa.tmwsystems.com:/repo -e "%EDITOR%" commit -D xml_reindent.pl</font><br/><font size="2">'D:\Program\' is not recognized as an internal or external command,</font><br /><fontsize="2">operable program or batch file.</font><br /><font size="2">cvs commit: warning: editor session failed</font><p><fontsize="2">U:\sandbox\docbook> REM BACKSLASH-ESCAPE SPACES AND SINGLE-QUOTE ON COMMAND LINE:</font><br/><font size="2">U:\sandbox\docbook> set EDITOR=D:\Program\ Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe</font><br/><font size="2">U:\sandbox\docbook> cvs -d :sspi:pbort@cleqa.tmwsystems.com:/repo-e "%EDITOR%" commit -D xml_reindent.pl</font><br /><font size="2">Unknown command:`Files\XEmacs\XEmacs-21.4.13\i586-pc-win32\XEmacs.exe''</font><p><font size="2">------</font><p><font size="2">Themessage "is not recognized as an internal or external command..." is from the operating system, so CVS is atleast trying to launch an editor in those cases.</font><p><font size="2">So to answer your question, at least in part,there is no current good behavior to emulate. At least on this version of CVS:</font><p><font size="2">Concurrent VersionsSystem (CVSNT) 2.0.51d (client/server)</font><p><font size="2">Copyright (c) 1989-2001 Brian Berliner, david d `zoo'zuhn,</font><br /><font size="2"> Jeff Polk, and other authors</font><br /><font size="2">CVSNTversion (Aug 19 2004) Copyright (c) 1999-2004 Tony Hoyle and others</font><br /><font size="2">see <a href="http://www.cvsnt.org"target="_blank">http://www.cvsnt.org</a></font><p><font size="2">If you have any other combinationsthat might make sense, let me know, and I'll give it a try.</font>
pgsql-hackers by date: