This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: bash, javac and that pesky slash.
- To: cygwin at sourceware dot cygnus dot com
- Subject: Re: bash, javac and that pesky slash.
- From: Kazuhiro Fujieda <fujieda at jaist dot ac dot jp>
- Date: 25 Jan 2000 04:35:04 +0900
- References: <388C8C72.8BB82F3E@chemconnect.com>
>>> On Mon, 24 Jan 2000 09:31:30 -0800
>>> Craig MacFarlane <craigm@chemconnect.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@jaist.ac.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@sourceware.cygnus.com