Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: "Richardson, Anthony M." To: "'Bernard Dautrevaux'" , cygwin AT cygwin DOT com Subject: RE: backslash and backslash backslash Date: Fri, 2 Feb 2001 11:52:24 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Umm. I don't think piping into read works either. (At least it doesn't for me.) I think it is because you set the variable in a subshell but not in the parent shell where you need it. Use mypath=$(cygpath -was $1) or mypath=`cygpath -was $1` instead. Regards, Tony Richardson > -----Original Message----- > From: Bernard Dautrevaux [mailto:Dautrevaux AT microprocess DOT com] > Sent: Friday, February 02, 2001 11:25 AM > To: 'Wilson Farrell'; cygwin AT cygwin DOT com > Subject: RE: backslash and backslash backslash > > > > -----Original Message----- > > From: Wilson Farrell [mailto:wfarrell AT bbn DOT com] > > Sent: Friday, February 02, 2001 5:56 PM > > To: cygwin AT cygwin DOT com > > Subject: backslash and backslash backslash > > > > > > In an attempt to access Netscape's sendto from cygwin I > > created a simple > > script: > > > > sendto.sh > > ------- > > #!/bin/bash > > > > /usr/bin/cygpath.exe -aw $1; read mypath > > > > /cygdrive/c/Apps/Netscape/Program/sendto32.exe $mypath > > I'd rather try: > > /cygdrive/c/Apps/Netscape/Program/sendto32.exe > `/usr/bin/cygpath.exe > -aw $1` > > but in any case you should use: > > /usr/bin/cygpath.exe -aw $1 | read mypath > > Regards, > > Bernard -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple