X-Spam-Check-By: sourceware.org
Message-ID: <45F235AD.3893AA72@dessent.net>
Date: Fri, 09 Mar 2007 20:35:57 -0800
From: Brian Dessent <brian@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: problems calling another program
References: <10da72180703092027g114247bdo9e7cf4e128a7321@mail.gmail.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

spam head wrote:

> Method #1:  function in my .bashrc
> function mygvim2
> {
>     /d/vim/vim70/gvim.exe -u d:/vim/_vimrc  $(cygpath -w "$@") &
> }
> 
> This function works fine, except that when I call it from rxvt, it
> pulls up gvim behind my rxvt window, instead of switching to that
> window.

Try cygstart --shownormal (or one of the other cygstart options.)

> Method #2: separate file
> I put an alias in my .bashrc file which says "alias vi=mygvim", and
> then I put this in the file mygvim:
> #! /bin/bash
> /d/vim/vim70/gvim.exe -u d:/vim/_vimrc $(cygpath -w "$@") &
> 
> This works as well (and switches to gvim as well).  The (minor)
> problem is that each time I call it, I get this message in the BASH
> window:
> : command not foundgvim: line 2:

Get rid of the DOS line endings.

Brian

--
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/

