delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/02/13:08:12

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <17B78BDF120BD411B70100500422FC6309E1E9@IIS000>
From: Bernard Dautrevaux <Dautrevaux AT microprocess DOT com>
To: "'Richardson, Anthony M.'" <ar63 AT evansville DOT edu>,
Bernard Dautrevaux
<Dautrevaux AT microprocess DOT com>, cygwin AT cygwin DOT com
Subject: RE: backslash and backslash backslash
Date: Fri, 2 Feb 2001 18:50:09 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

> -----Original Message-----
> From: Richardson, Anthony M. [mailto:ar63 AT evansville DOT edu]
> Sent: Friday, February 02, 2001 6:52 PM
> To: 'Bernard Dautrevaux'; cygwin AT cygwin DOT com
> Subject: RE: backslash and backslash backslash
> 
> 
> 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.
> 

Yeah, probably; I'm use to pipe in read, but usually piping to a "while read
var; do ... done" block in which I use the var, so I type too fast. Anyway
my first suggestion was to use command substitution (either directly on the
netscape command line, or to set mypath as you did).

Regards,

	Bernard

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

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux AT microprocess DOT com
		b DOT dautrevaux AT usa DOT net
-------------------------------------------- 

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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