delorie.com/archives/browse.cgi | search |
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: | <3A7AE68C.F1EF9CE@bbn.com> |
Date: | Fri, 02 Feb 2001 11:55:40 -0500 |
From: | Wilson Farrell <wfarrell AT bbn DOT com> |
Organization: | BBN Technologies |
X-Mailer: | Mozilla 4.75 [en]C-CCK-MCD (WinNT; U) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
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 ------- So, in theory "sendto.sh myfile.txt" should send myfile.txt to Netscape messenger as an attachment to a new mail. unfortunately since $mypath contains "\'s" instead of "\\'s" this fails. sendto32.exe seems to require an absolute path name in dos format, which is why I used cygpath. note, this works from the command line: /cygdrive/c/Apps/Netscape/Program/sendto32.exe c:\\wfarrell\\myfile.txt Is there an easy way to get around this problem. thanks, wilson -- #+#+#+#+#+#+#+#+#+#+#+#+ + Wilson Farrell # #+#+#+#+#+#+#+#+#+#+#+#+ + Systems Engineer # # BBN Technologies + + An L.L.C. of Verizon # # Information Security + + wfarrell AT bbn DOT com # # VOX (617)873-5283 + + FAX (617)873-4086 # #+#+#+#+#+#+#+#+#+#+#+#+ -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |