X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Matthew Woehlke <mw_triad AT users DOT sourceforge DOT net> Subject: Re: nedit windows integration Date: Wed, 08 Aug 2007 11:36:19 -0500 Lines: 25 Message-ID: <f9cre3$5m0$1@sea.gmane.org> References: <C6EEDB0EB45A56439F73B1D23E39694A3DF6AC AT USORL02P702 DOT ww007 DOT siemens DOT net> <f9cm64$gei$1 AT sea DOT gmane DOT org> <C6EEDB0EB45A56439F73B1D23E39694A3DF6F9 AT USORL02P702 DOT ww007 DOT siemens DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070509 Thunderbird/1.5.0.12 Mnenhy/0.7.4.0 In-Reply-To: <C6EEDB0EB45A56439F73B1D23E39694A3DF6F9@USORL02P702.ww007.siemens.net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: <cygwin.cygwin.com> List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Frederich, Eric P21322 wrote: > Matthew Woehlke Wrote : >> Instead of 'nedit', you could run.exe a script that looks >> something like: >> >> nedit $(cygpath -u "$1") > > I get an error "Can't open /usr/X11R6/bin/$(cygpath:..." > Can't read the entire error because it is in an unsizeable window. ...did you put it in a script, or try to feed it to 'run.exe' directly? It looks like you did the latter. "you could run.exe --> *a script* that looks something like... <--" You need to create a script (say, 'my-launch-nedit.sh') and call run.exe on that instead. The sample script I gave will call 'cygpath' on the first argument and feed the result to nedit. Hmm, also, a minor correction: nedit "$(cygpath -u "$1")" # note added quotes -- Matthew People say I'm going insane. I say, "what do you mean, 'going'?". -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/