This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Windows Editor problem


On Sat, 3 Aug 2002, Raphael wrote:

> EDITOR=c:/Textpad/TextPad.exe
>
> [...]
> It starts ok, but any file passed through by cygwin misses the first
> two characters. An example /tmp/crontab.1188 would become mp/crontab.1188

TextPad appears to be processing /tmp/crontab.1188 as the /t option
followed by the file name. Non-Cygwin programs generally don't support
Cygwin paths. Use cygpath. Here's an example for use with Emacs, a
non-Cygwin program:

emacs ()
{
    command emacs "`cygpath -w \"$@\"`" &
}

If you want to set EDITOR perhaps you could make a shell script which does
the cygpathing.
-- 
Michael Hoffman <grouse@mail.utexas.edu>
The University of Texas at Austin


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]