Friday, December 15, 2017

klish-2.1.4

Mostly bugfix release.


  • Fix nested up function when start depth is not 0
  • Interactive mode can't be 1 when isatty is 0
  • Fix args string encoding
  • Fix waiting for child processes


New feature is printing commands in canonical form. You can filter your startup-config with klish. It will check a syntax and output startup-config commands with spaces before them. Each space is one nesting level.

Saturday, June 4, 2016

klish-2.1.2 and klish-2.0.5

Bugfix release. It's strongly recommended to update your klish.
The problem is with FIFO races. You can get it when use something like 'yourscript &' in ACTION script. Klish can hang when cpu is under the high load.


Wednesday, October 7, 2015

klish-2.1.1

Bugfix release. It's recommended to update from version klish-2.1.0. The klish-2.1.1 fix regression (2.1.0) with signal handling, CDATA container (libxml2), xslt configuring. Add rtld_global=true/false attribute for PLUGIN tag.

Thursday, October 1, 2015

klish-2.1.0

The klish now supports XSLT transformations. The project can be build with --with-libxslt option. The XSLT engine needs libxml2 library. The clish utility has --xslt(-p) option to set stylesheet file. The embedded stylesheets is also supported.

The plugin mechanism has new CLISH_PLUGIN_OSYM() API to define ACTION functions. This mechanism allows to get all ACTION's stdout output to internal variable. VARs use this internal variable to get their values. See clish_script() function for exmaple. Such function must be added by clish_plugin_add_osym() function. The old API is also supported.

Friday, March 6, 2015

klish-2.0.3

Bugfix release. The clish plugin is linked to tinyrl now. The klish output (when the enter is pressed) is flushed now.

Monday, January 12, 2015

klish-2.0.2

Bugfix release.
  • Check access attribute for command links.
  • Fix bug with empty ini file value parsing.
  • Resolve PTYPE for "args" in a right way. Fix segmentation fault.
  • Fix lua plugin build.
It's strongly recommended to update klish.

Tuesday, December 16, 2014

Tuesday, November 25, 2014

klish-2.0.0

The klish-2.0.0 contains many changes. The main ones is plugin subsystem and user defined hooks.
The user can create his own shared library (.so file) with special API and export symbols to use as builtin functions within ACTION. Also shared object can export its own hooks (hook for access, for communication to confd, ...).
The plugin using is controlled by XML files. There are new tags: PLUGIN and HOOK. So to use your own C-based code with klish you don't need to recompile klish. Just create a plugin. See plugin examples in plugin/ dir within klish source tree.

Sunday, October 26, 2014

klish-1.7.0

The 1.7 is a last stable branch of klish version 1. The bugfixes only will be added to 1.7 branch.
Changes:
  • Tinyrl fix. Don't ignore first slash in parameter.
  • Don't inherit service file descriptors while ACTION execution.
  • Never show ACTION scripts in ps.
  • Add files for buildroot-2014.08

The klish-2.0.0 coming soon.

Thursday, August 21, 2014

Monday, March 3, 2014

klish-1.6.8

New klish-1.6.8 was released.
The CJK support is implemented. Some fixes for tiny readline internal library.

Thursday, February 13, 2014

Attention! Move downloads and issues

Attention! The downloads and issue tracker were moved to http://klish.libcode.org

See for the downloads in http://klish.libcode.org/files
See for the issues in http://klish.libcode.org/issues

Thursday, December 5, 2013

klish-1.6.7

New version of stable 1.6 branch.

Fix portability issues. Tested on Linux, FreeBSD, Solaris, QNX.
Fix libroxml >= 2.2.2 support.
Syslog facility for clish and konfd utils.
Internal getopt() implementation. For example QNX has uncompatible getopt() so internal one must be used.

Tuesday, October 8, 2013

Log facility

Now you can choose syslog facility for clish and konfd processes. Use -O option to set facility name.

Tuesday, October 1, 2013

Fix libroxml support

The libroxml >= 2.2.2 support was fixed. You can find these cahnges in the git repository https://src.libcode.org/klish

Tuesday, September 3, 2013

New version klish-1.6.6

The SIGPIPE signal behaviour was fixed. Earlier the clish utility ignore this signal and the ACTION scripts inherit this ignoration. So some utilities used within ACTION scripts couldn't get SIGPIPE at all. Now the SIGPIPE signal handler set to default for the ACTION scripts.

The view field of COMMAND tag is dynamic now. You can use VARs in it.

Tuesday, July 23, 2013

Move main repository

The main klish GIT repository was moved to the another location. See the 
https://src.libcode.org/klish

Saturday, February 16, 2013

New versions klish-1.5.9 and klish-1.6.4

New bugfix versions klish-1.5.9 and klish-1.6.4 were released. These versions is important for the FreeBSD only. The getpwent() function related problem was fixed. The incompatibility bug can lead to "Bus error" on FreeBSD.

Monday, December 24, 2012

Attention. Bug

The klish-1.5.8 and klish-1.6.3 bugfix versions were released. The bug is related to completions. The engine breaks when the length of completion string greater than width of terminal.

All klish versions have this bug including original clish. In a case of original clish it's hard to reproduce problem because only command and param names can be completed. It has not custom user defined completions.

The update to new versions is recommended.

Friday, November 30, 2012

The klish-1.5.7 and klish-1.6.2 are out

The main feature of these releases is programmable hotkeys. See the https://code.google.com/p/klish/wiki/hotkeys and https://code.google.com/p/klish/wiki/HOTKEY for details.
Additionally the multiline and unsignedInteger type processing were fixed.