SET command?
Wednesday, 8 May 2013 · 4 messages
PH
Pascal Heus8 May 2013 14:41 #
Having a weird behavior with the SET command as I can'r seem to change any option.
Just launching from the shell using the "basex" script, I can GET but not SET. I must be doing something obviously wrong....
This is with 7.6 on MacOSX.
BaseX 7.6 [Standalone]
Try help to get more information.
Quoted text · 1 line
> GET DBPATH
DBPATH: /Applications/basex/dataQuoted text · 1 line
> SET DBPATH /Users/Pascal/BaseXData
Unknown option '
DBPATH'.Quoted text · 1 line
> GET LANG
LANG: EnglishQuoted text · 1 line
> SET LANG French
Unknown option '
LANG'.Quoted text · 1 line
>
Also tried:
basex -c "SET
DBPATH /Users/Pascal/BaseXData"
but same results.DK
Dirk Kirsten8 May 2013 15:11 #
Dear Pascal,
there is one little hint in the documentation, take a look here " http://docs.basex.org/wiki/Commands#SET". It says "Only local options can be modified.".
Both of these options are global, so you can not change them using SET (you can use the .basex config file or system properties, see
http://docs.basex.org/wiki/Options).
However, I totally understand that you missed this information in the doc as it is quite hidden. Additionally, the error feedback is quite misleading. I would opt for a slightly changed error message like "Unknown local option X" as it gives the user an indication that there are local/global options and this is not a local one.
Cheers,
Dirk
Quoted text · Pascal Heus · 30 lines
On Wed, May 8, 2013 at 2:41 PM, Pascal Heus <pascal.heus at gmail.com> wrote: > Having a weird behavior with the SET command as I can'r seem to change > any option. > Just launching from the shell using the "basex" script, I can GET but > not SET. I must be doing something obviously wrong.... > This is with 7.6 on MacOSX. > > BaseX 7.6 [Standalone] > Try help to get more information. > > > GET DBPATH > DBPATH: /Applications/basex/data > > SET DBPATH /Users/Pascal/BaseXData > Unknown option 'DBPATH'. > > GET LANG > LANG: English > > SET LANG French > Unknown option 'LANG'. > > > > Also tried: > basex -c "SET DBPATH /Users/Pascal/BaseXData" > but same results. > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
--
Dirk Kirsten, BaseX GmbH, http://basex.org
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
PH
Pascal Heus8 May 2013 16:38 #
Dirk:
Ah, yes, read the docs! For once I actually did.... but missed the nuance :-)
In this particular case, I would suggest if possible changing the error message to "This value cannot be SET. Only local options can be modified." , to differentiate from "Unknown Option".
Thanks for pointing this out, much appreciated.
best
*P
Quoted text · Dirk Kirsten · 61 lines
On 5/8/13 3:11 PM, Dirk Kirsten wrote: > Dear Pascal, > > there is one little hint in the documentation, take a look here > "http://docs.basex.org/wiki/Commands#SET". It says "Only local options > can be modified.". > Both of these options are global, so you can not change them using SET > (you can use the .basex config file or system properties, > see http://docs.basex.org/wiki/Options). > However, I totally understand that you missed this information in the > doc as it is quite hidden. Additionally, the error feedback is quite > misleading. I would opt for a slightly changed error message like > "Unknown local option X" as it gives the user an indication that there > are local/global options and this is not a local one. > > Cheers, > Dirk > > > On Wed, May 8, 2013 at 2:41 PM, Pascal Heus <pascal.heus at gmail.com > <mailto:pascal.heus at gmail.com>> wrote: > > Having a weird behavior with the SET command as I can'r seem to change > any option. > Just launching from the shell using the "basex" script, I can GET but > not SET. I must be doing something obviously wrong.... > This is with 7.6 on MacOSX. > > BaseX 7.6 [Standalone] > Try help to get more information. > > > GET DBPATH > DBPATH: /Applications/basex/data > > SET DBPATH /Users/Pascal/BaseXData > Unknown option 'DBPATH'. > > GET LANG > LANG: English > > SET LANG French > Unknown option 'LANG'. > > > > Also tried: > basex -c "SET DBPATH /Users/Pascal/BaseXData" > but same results. > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > <mailto:BaseX-Talk at mailman.uni-konstanz.de> > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > > > > -- > Dirk Kirsten, BaseX GmbH, http://basex.org <http://basex.org/> > |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz > |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: > | Dr. Christian Grün, Alexander Holupirek, Michael Seiferle > `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
CG
Christian Grün8 May 2013 17:19 #
…done. I’ve uploaded a new snapshot
Thanks,
Christian
Quoted text · Pascal Heus · 80 lines
On Wed, May 8, 2013 at 4:38 PM, Pascal Heus <pascal.heus at gmail.com> wrote: > Dirk: > Ah, yes, read the docs! For once I actually did.... but missed the nuance > :-) > In this particular case, I would suggest if possible changing the error > message to "This value cannot be SET. Only local options can be modified." , > to differentiate from "Unknown Option". > Thanks for pointing this out, much appreciated. > best > *P > > > On 5/8/13 3:11 PM, Dirk Kirsten wrote: > > Dear Pascal, > > there is one little hint in the documentation, take a look here > "http://docs.basex.org/wiki/Commands#SET". It says "Only local options can > be modified.". > Both of these options are global, so you can not change them using SET (you > can use the .basex config file or system properties, see > http://docs.basex.org/wiki/Options). > However, I totally understand that you missed this information in the doc as > it is quite hidden. Additionally, the error feedback is quite misleading. I > would opt for a slightly changed error message like "Unknown local option X" > as it gives the user an indication that there are local/global options and > this is not a local one. > > Cheers, > Dirk > > > On Wed, May 8, 2013 at 2:41 PM, Pascal Heus <pascal.heus at gmail.com> wrote: >> >> Having a weird behavior with the SET command as I can'r seem to change >> any option. >> Just launching from the shell using the "basex" script, I can GET but >> not SET. I must be doing something obviously wrong.... >> This is with 7.6 on MacOSX. >> >> BaseX 7.6 [Standalone] >> Try help to get more information. >> >> > GET DBPATH >> DBPATH: /Applications/basex/data >> > SET DBPATH /Users/Pascal/BaseXData >> Unknown option 'DBPATH'. >> > GET LANG >> LANG: English >> > SET LANG French >> Unknown option 'LANG'. >> > >> >> Also tried: >> basex -c "SET DBPATH /Users/Pascal/BaseXData" >> but same results. >> >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > > > > -- > Dirk Kirsten, BaseX GmbH, http://basex.org > |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz > |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: > | Dr. Christian Grün, Alexander Holupirek, Michael Seiferle > `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22 > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 7.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery