Command history in basex client

Wednesday, 12 August 2015 · 5 messages
A
adj738812 Aug 2015 01:31 #
Hello, Does the basex command line client keep no command history? I am using the Linux version. In most Linux command line programs, the up- and down-arrows allow you to scroll through past commands so you don't have to retype them every time. I see "Save command-line history" in the change log for version 8.0.1 ( and I have version 8.2.3 installed) but command history does not appear to work. Thanks, Alan
CG
Christian Grün12 Aug 2015 10:40 #
Hi Alan, the command-line history is available in the full distribution of BaseX (zip, exe), which includes the Java readline library (JLine). Hope this helps, Christian
Quoted text · adj7388 · 12 lines
Tue, Aug 11, 2015 at 11:31 PM, adj7388 <adj7388 at gmail.com> wrote: > Hello, > > Does the basex command line client keep no command history? I am using the > Linux version. In most Linux command line programs, the up- and down-arrows > allow you to scroll through past commands so you don't have to retype them > every time. I see "Save command-line history" in the change log for version > 8.0.1 ( and I have version 8.2.3 installed) but command history does not > appear to work. > > Thanks, > Alan
AH
Alexander Holupirekin reply to adj7388, 12 Aug 2015, 17:2512 Aug 2015 15:39 #
Debian package lists readline as recommended since it is not necessary, but ... em ... recommended [1] [1] https://packages.debian.org/sid/basex
Quoted text · adj7388 · 29 lines
> Am 12.08.2015 um 15:24 schrieb adj7388 <adj7388 at gmail.com>: > > I installed using apt-get on Ubuntu. I didn't realize that wouldn't get me the full version. > > Thanks. > >> On Wed, Aug 12, 2015 at 4:40 AM, Christian Grün <christian.gruen at gmail.com> wrote: >> Hi Alan, >> >> the command-line history is available in the full distribution of >> BaseX (zip, exe), which includes the Java readline library (JLine). >> >> Hope this helps, >> Christian >> >> >> Tue, Aug 11, 2015 at 11:31 PM, adj7388 <adj7388 at gmail.com> wrote: >> > Hello, >> > >> > Does the basex command line client keep no command history? I am using the >> > Linux version. In most Linux command line programs, the up- and down-arrows >> > allow you to scroll through past commands so you don't have to retype them >> > every time. I see "Save command-line history" in the change log for version >> > 8.0.1 ( and I have version 8.2.3 installed) but command history does not >> > appear to work. >> > >> > Thanks, >> > Alan >
A
adj7388in reply to Christian Grün, 12 Aug 2015, 10:4012 Aug 2015 17:25 #
I installed using apt-get on Ubuntu. I didn't realize that wouldn't get me the full version. Thanks.
Quoted text · Christian Grün · 28 lines
On Wed, Aug 12, 2015 at 4:40 AM, Christian Grün <christian.gruen at gmail.com> wrote: > Hi Alan, > > the command-line history is available in the full distribution of > BaseX (zip, exe), which includes the Java readline library (JLine). > > Hope this helps, > Christian > > > Tue, Aug 11, 2015 at 11:31 PM, adj7388 <adj7388 at gmail.com> wrote: > > Hello, > > > > Does the basex command line client keep no command history? I am using > the > > Linux version. In most Linux command line programs, the up- and > down-arrows > > allow you to scroll through past commands so you don't have to retype > them > > every time. I see "Save command-line history" in the change log for > version > > 8.0.1 ( and I have version 8.2.3 installed) but command history does not > > appear to work. > > > > Thanks, > > Alan >
A
adj7388in reply to Alexander Holupirek, 12 Aug 2015, 15:3912 Aug 2015 18:01 #
I would suggest that libjline-java be promoted from 'recommended' to 'necessary', at least for Linux installs. I have yet to use Linux software with a CLI that does not support command history. Just a suggestion. So I have libjline-java installed on my system, and added this line to the basexclient script: find_jars /usr/share/doc/libjline-java 2>/dev/null but command history still does not work. Do I need to do something else? Thank you.
Quoted text · Alexander Holupirek · 45 lines
On Wed, Aug 12, 2015 at 9:39 AM, Alexander Holupirek <alex at holupirek.de> wrote: > Debian package lists readline as recommended since it is not necessary, > but ... em ... recommended [1] > > [1] https://packages.debian.org/sid/basex > > Am 12.08.2015 um 15:24 schrieb adj7388 <adj7388 at gmail.com>: > > I installed using apt-get on Ubuntu. I didn't realize that wouldn't get me > the full version. > > Thanks. > > On Wed, Aug 12, 2015 at 4:40 AM, Christian Grün <christian.gruen at gmail.com > > wrote: > >> Hi Alan, >> >> the command-line history is available in the full distribution of >> BaseX (zip, exe), which includes the Java readline library (JLine). >> >> Hope this helps, >> Christian >> >> >> Tue, Aug 11, 2015 at 11:31 PM, adj7388 <adj7388 at gmail.com> wrote: >> > Hello, >> > >> > Does the basex command line client keep no command history? I am using >> the >> > Linux version. In most Linux command line programs, the up- and >> down-arrows >> > allow you to scroll through past commands so you don't have to retype >> them >> > every time. I see "Save command-line history" in the change log for >> version >> > 8.0.1 ( and I have version 8.2.3 installed) but command history does not >> > appear to work. >> > >> > Thanks, >> > Alan >> > >

⚡Generated with XQuery