delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/13/13:59:46

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <706871B20764CD449DB0E8E3D81C4D433DC6BC@opus.cs.cornell.edu>
From: Paul Stodghill <stodghil AT cs DOT cornell DOT edu>
To: Cygnus list <cygwin AT sourceware DOT cygnus DOT com>
Subject: RE: naive request: Cygwin and Windows/DOS program
Date: Tue, 13 Jun 2000 13:56:19 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

Do you want something that translated the command line arguments between
the two environments? Shell scripts are your friend...

    milhouse% cat `which iexplorer`
    #!/bin/sh

    CMD='//C/Program Files/Internet Explorer/IEXPLORE.EXE'

    if [ "$1" -a -e "$1" ] ; then
        D="`dirname \"$1\"`"
        D="`cd \"$D\" ; pwd`"
        F="`basename \"$1\"`"
        P="$D/$F"
        W="`cygpath -w \"$P\"`"
        exec "$CMD" "$W" &
    else
        exec "$CMD" &
    fi
    milhouse% 

> -----Original Message-----
> From: Jerome G. Benoit [mailto:jgmbenoit AT wanadoo DOT fr]
> Sent: Tuesday, June 13, 2000 1:31 PM
> To: Cygnus list
> Subject: naive request: Cygwin and Windows/DOS program
> 
> 
> Hi !
> 
> Is there a simple trick to use Windows/DOS program under Cygnus/bash:
> e.g. I want to use my favorite Windows editor [namely WinEdt] under
> bash,
> but unfortunetly I cannot use carelessly because of links,mounts,...
> 
> Note that there are a lot of canditate for this: TeX stuff,
> ghostscript,...
> 
> Thanks inadvance,
> jerome BENOIT
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019