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 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) Content-Type: text/plain; charset=US-ASCII From: Kazuhiro Fujieda 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: Lines: 37 X-Mailer: Gnus v5.3/Emacs 19.34 >>> On Mon, 24 Jan 2000 09:31:30 -0800 >>> Craig MacFarlane 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 | 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