The following basex 11.1 on macOS command line outputs a warning message twice when it is run from a directory whose absolute path contains a [ (basex might output similar errors for other offending characters):
$ pwd
<path containing a [>
$ basex -i <path> <xpath>
Illegal character in path at index <index>: <file: url to pwd>
Illegal character in path at index <index>: <file: url to pwd>
Description of the Problem
The following basex 11.1 on macOS command line outputs a warning message twice when it is run from a directory whose absolute path contains a
[
(basex might output similar errors for other offending characters):Expected Behavior
No warnings
Steps to Reproduce the Behavior
Do you have an idea how to solve the issue?
URL encode the path for the pwd before using it in a URL.
What is your configuration?
basex 11.1 installed from brew zsh 5.9 installed from brew macOS 12.7.6