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 sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
To: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re: bash, javac and that pesky slash. |
References: | <388C8C72 DOT 8BB82F3E AT chemconnect DOT com> |
Mime-Version: | 1.0 (generated by tm-edit 7.106) |
From: | Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp> |
Date: | 25 Jan 2000 04:35:04 +0900 |
In-Reply-To: | Craig MacFarlane's message of Mon, 24 Jan 2000 09:31:30 -0800 |
Message-ID: | <s1s66wjfel3.fsf@jaist.ac.jp> |
Lines: | 37 |
X-Mailer: | Gnus v5.3/Emacs 19.34 |
>>> On Mon, 24 Jan 2000 09:31:30 -0800 >>> Craig MacFarlane <craigm AT chemconnect DOT com> said: > Sun's javac, in jdk1.2.1, seems to change the > forward slashes used by bash to backward slashes > used by windows. > > e.g. > > bash-2.02% javac -d //d/destdir/classes foo.java > > produces the error message > > The \\d\destdir\classes directory does not exist. You can use a shell script like the following. #!/bin/sh params="/jdk1.2.2/bin/`basename '$0'`" while [ $# -gt 0 ] do if expr "$1" : '-.*' >/dev/null 2>&1 then arg="$1" else arg=`cygpath -p -w "$1"` fi params="$params '$arg'" shift done eval "$params" ____ | AIST Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp> | HOKURIKU School of Information Science o_/ 1990 Japan Advanced Institute of Science and Technology -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |