Hi Marko,

to be precise:
I tested with ubuntu default shell.

java -jar mkgmap.jar ~/xyz.osm.pbf works
java -jar mkgmap.jar --bounds=~/bounds_20121118.zip  xyz.osm  gives file not found error for the bounds file

Gerd


From: gpetermann_muenchen@hotmail.com
To: mkgmap-dev@lists.mkgmap.org.uk
Date: Thu, 14 Feb 2013 21:15:30 +0100
Subject: Re: [mkgmap-dev] --bounds not accepting ~ (tilde)

Hi Marko,

the parameter is accepted, but you get a file not found error.

Gerd

> Date: Thu, 14 Feb 2013 22:11:36 +0200
> From: marko.makela@iki.fi
> To: mkgmap-dev@lists.mkgmap.org.uk
> Subject: Re: [mkgmap-dev] --bounds not accepting ~ (tilde)
>
> On Thu, Feb 14, 2013 at 08:36:02PM +0100, Gerd Petermann wrote:
> >yes, it seems that the shell doesn't replace the ~ when it is used in
> >parameters. Same problem occurs with the coastlinefile option.
> >
> >I think that is acceptable, but we could implement something
>
> I don't think we should try to replicate any shell functionality. But,
> if we do not accept
>
> java -jar mkgmap.jar --bounds ~/foo
>
> then that could be fixed. GNU getopt allows both --long-option=value and
> --long-option value.
>
> Marko
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev