output option with filenames with space in windows
Thursday, 10 November 2011 · 3 messages · last reply 13 Nov 2011
CG
Dear Randy,
thanks for your observation. This issue is related to some other issues reported in one of our GitHub issues..
https://github.com/BaseXdb/basex/issues/154
..and I have just added your remark. Just another motivation to fix this pretty soon (there are lots of similar issues around the current command lnie parsing).
We'll keep you updated,
Christian
Quoted text · Randy reed · 39 lines
On Thu, Nov 10, 2011 at 9:23 PM, Randy reed <randywreed at gmail.com> wrote: > This is probably an elementary question but I am using basex on windows and > trying to invoke the program with -o option, but it keeps choking on the > space in the file name. I've tried escaping the name with \ but to no avail. > Heres the line: > > C:\>java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX > -o"C:\Documents and Settings\reedrw\My Documents\audit.xml" "C:/Documents > and Settings/reedrw/My Documents/My > Dropbox/student_ind_detail_byname_no_ext_var.xq" > > The error is: > Error: File or directory "and Settings\reedrw\My Documents\audit.xml > C:/Document s and Settings/reedrw/My Documents/My > Dropbox/student_ind_detail_byname_no_ext_var.xq" not found. > > So it looks to me that the -o has stopped at the space and then it hast > taken the rest as the full path of the actual query. Just to be clear I have > tried it > java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX -o"C:/Documents > and Settings/reedrw/My Documents/audit.xml" "C:/Documents and > Settings/reedrw/My Documents/My > Dropbox/student_ind_detail_byname_no_ext_var.xq" > > as well and that generates the same error > > thanks in advance > > -- > Dr. Randall Reed > Assistant Professor, Dept. of Philosophy and Religion > Appalachian State University > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
RR
Randy reed10 Nov 2011 22:24 #
This is probably an elementary question but I am using basex on windows and trying to invoke the program with -o option, but it keeps choking on the space in the file name. I've tried escaping the name with \ but to no avail. Heres the line:
C:\>java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX -o"C:\Documents and Settings\reedrw\My Documents\audit.xml" "C:/Documents and Settings/reedrw/My Documents/My
Dropbox/student_ind_detail_byname_no_ext_var.xq"
The error is:
Error: File or directory "and Settings\reedrw\My Documents\audit.xml C:/Document s and Settings/reedrw/My Documents/My
Dropbox/student_ind_detail_byname_no_ext_var.xq" not found.
So it looks to me that the -o has stopped at the space and then it hast taken the rest as the full path of the actual query. Just to be clear I have tried it
java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX -o"C:/Documents and Settings/reedrw/My Documents/audit.xml" "C:/Documents and Settings/reedrw/My Documents/My
Dropbox/student_ind_detail_byname_no_ext_var.xq"
as well and that generates the same error
thanks in advance
--
Dr. Randall Reed
Assistant Professor, Dept. of Philosophy and Religion
Appalachian State University
CG
Christian Grün13 Nov 2011 23:37 #
Randy,
I have reworked our command line API, and your problems should now be fixed in the latest snapshot.
http://files.basex.org/releases/latest/
http://docs.basex.org/wiki/Startup_Options_(Snapshot)
Your feedback is welcome,
Christian
Quoted text · Randy reed · 39 lines
On Thu, Nov 10, 2011 at 9:23 PM, Randy reed <randywreed at gmail.com> wrote: > This is probably an elementary question but I am using basex on windows and > trying to invoke the program with -o option, but it keeps choking on the > space in the file name. I've tried escaping the name with \ but to no avail. > Heres the line: > > C:\>java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX > -o"C:\Documents and Settings\reedrw\My Documents\audit.xml" "C:/Documents > and Settings/reedrw/My Documents/My > Dropbox/student_ind_detail_byname_no_ext_var.xq" > > The error is: > Error: File or directory "and Settings\reedrw\My Documents\audit.xml > C:/Document s and Settings/reedrw/My Documents/My > Dropbox/student_ind_detail_byname_no_ext_var.xq" not found. > > So it looks to me that the -o has stopped at the space and then it hast > taken the rest as the full path of the actual query. Just to be clear I have > tried it > java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX -o"C:/Documents > and Settings/reedrw/My Documents/audit.xml" "C:/Documents and > Settings/reedrw/My Documents/My > Dropbox/student_ind_detail_byname_no_ext_var.xq" > > as well and that generates the same error > > thanks in advance > > -- > Dr. Randall Reed > Assistant Professor, Dept. of Philosophy and Religion > Appalachian State University > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
Written for BaseX 7.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery