Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <238230-220021221017311933@M2W098.mail2web.com> X-Priority: 3 Reply-To: lhall AT rfk DOT com X-Originating-IP: 209.113.174.244 From: "lhall AT pop DOT ma DOT ultranet DOT com" To: spurcell AT vertisinc DOT com, cygwin AT cygwin DOT com Subject: RE: pathing issues script failure Date: Tue, 10 Dec 2002 12:31:19 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 X-OriginalArrivalTime: 10 Dec 2002 17:31:19.0250 (UTC) FILETIME=[F33E7320:01C2A071] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id gBAHVjj17160 Non-Cygwin programs don't and never will understand Cygwin's POSIX paths. Look to the FAQ entry below for the cygpath utility to convert paths back and forth: How do I convert between Windows and UNIX paths? http://cygwin.com/faq/faq_4.html#SEC36 Larry Original Message: ----------------- From: Scott Purcell spurcell AT vertisinc DOT com Date: Tue, 10 Dec 2002 11:05:29 -0600 To: cygwin AT cygwin DOT com Subject: pathing issues script failure Hello, I am writing a simple shell script and I am running into some roadblocks. I am sure it is something I am doing, or the way I have configured the system? Anyway, the problem is in the following script, I have to type in /cygdrive/c, to reach the c drive. But for some reason this script fails when it has to put the output away. It switches the / unix style slashes back to windows? I am on win2000. I am trying to get this working, does anyone know what is wrong, or what I should change to get this rolling? Thanks, Scott Here is the script. #!/bin/sh pwd=`pwd` echo $pwd " is pwd" classfiles=/cygdrive/c `cp -r ${classfiles}/com ${classfiles}/cvs_tmp` cd ${classfiles}/cvs_tmp args=`find . | grep java\$ | tr "\n" " "` # run javadoc with the -d option, which will put the output in the # directory this script was run from echo /cygdrive/c/Program Files/jdk1.3.1_04/bin/javadoc -J-Xmx96m -d $pwd javafil es .... /cygdrive/c/Program\ Files/jdk1.3.1_04/bin/javadoc -J-Xmx96m -d $pwd $args # go back to where we started from cd $pwd find . | xargs chmod 777 ### here is what happens when I run it, notice the Destination, it is now \cygdrive\c spurcell AT DSGSTL-PC-1523 /cygdrive/c $ javadoc.sh /cygdrive/c is pwd /cygdrive/c/Program Files/jdk1.3.1_04/bin/javadoc -J-Xmx96m -d /cygdrive/c javaf iles .... javadoc: Destination directory not found \cygdrive\c 1 error -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/