This is the mail archive of the cygwin@sourceware.cygnus.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]

Re: naive request: Cygwin and Windows/DOS program


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

Exactly !
I guess that is the simpler way to do what I want:
my thought was that there is some thing more specific.

> 
>     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@wanadoo.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@sourceware.cygnus.com
> >
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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