Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 3 Aug 2002 21:19:16 +0100 From: Raphael cc: cygwin AT cygwin DOT com Subject: Re: Windows Editor problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, 3 Aug 2002, Michael Hoffman wrote: > 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: [Knocks head several times on desktop] Now why didn't I think of that? > > emacs () > { > command emacs "`cygpath -w \"$@\"`" & > } > > If you want to set EDITOR perhaps you could make a shell script which does > the cygpathing. Jup I probably have no other choice, I'll try that, thanks for the cookie. Raphael - -- Isn't it interesting that the same people who laugh at science fiction listen to weather forecasts and economists? -- Kelvin Throop III -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (Cygwin32) iD8DBQE9TDrLWEtPuWPcngsRAo5lAJwPhYHoLMVW2/Fql2YLqoF8MAqCyACeIA0K PrGYGpxX6ec38UIpcSMOUnY= =FVdk -----END PGP SIGNATURE----- -- 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/