From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kazuhiro Fujieda To: cygwin@sourceware.cygnus.com Subject: Re: bash, javac and that pesky slash. Date: Mon, 24 Jan 2000 11:36:00 -0000 Message-id: References: <388C8C72.8BB82F3E@chemconnect.com> X-SW-Source: 2000-01/msg00378.html >>> 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@sourceware.cygnus.com