RE: [bdbxml] history and line editing in dbxml shell.
"Ron Cohen" <[email protected]>
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
Bas,
>To get the command back, the only way I can do this is to
use copy/paste, rather than using the "cursor up/down"
buttons to quickly step >through a list of previous executed
commands. If I then paste a command on the prompt line, I
can not use the "cursor left/right" buttons to
>position the cursor somewhere on that line and make a
change. I can only use the backspace button removing
everything up to the point
>where I want to make a change. This all is a bit painful.
Here is one suggestion and that is to use script files.
If you want to save what you typed, I'd recommend creating a
script file. You keep your
favorite editor open to type in the script and then run it.
If you have any errors,
then you can edit the file and run the script again.
Here is a simple script I created:
opencontainer test.dbxml
putdocument adocument {<phonebook>
<name>
<first>Ron</first>
<last>Cohen</last>
</name>
</phonebook> }
The file is named ron.script.
dbxml> run ron.script
Document added, name = adocument
Again if I had any errors I would edit the script above.
I hope this helps.
Ron
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ron Cohen
Sleepycat Software, Inc.
[email protected]
Sleepycat Software, Inc. - The Makers of Berkeley DB
http://www.sleepycat.com <http://www.sleepycat.com/>