GitXplorerGitXplorer
r

miniexpect

public
69 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
b300de9ac244ef5fd315228bce69c2b938dc77f4

Makefile.am: add "-Wextra -Wshadow"

llersek committed 2 years ago
Unverified
8535c687e8702be28cf82406de2934ccf04478d5

tests: mark main()'s "argc" as unused

llersek committed 2 years ago
Unverified
45a7c4d5ed0afd47e0df2f444d33683e17ae53b9

tests: add "missing" initializers

llersek committed 2 years ago
Unverified
783db67b0bf0ea3b10e842cbb210870a4947320e

miniexpect.c: fix always-true comparison

llersek committed 2 years ago
Unverified
f50ad471e49d3fc5d4d896fbd5b6d2be93192671

Add a bit of explanation of what "expect" is

rrwmjones committed 2 years ago
Unverified
239fab3e3bb2f06a19db3cd1c3e91c93c7141891

docs: Small revisions to the manual and readme file

rrwmjones committed 2 years ago

README

The README file for this repository.

Miniexpect is a very simple expect-like library

Expect (https://core.tcl-lang.org/expect/index) is a venerable Tcl program for automating interactive services, often for automating logins over telnet, ftp, ssh, etc.

Miniexpect is a C library which has a saner interface than libexpect, and doesn't depend on Tcl. It is also thread safe, const-correct and uses modern C standards.

Miniexpect is standalone, except that it requires the PCRE2 (Perl Compatible Regular Expressions) library from http://www.pcre.org/. The PCRE2 dependency is fundamental because we want to offer the most powerful regular expression syntax to match on, but more importantly because PCRE2 has a convenient way to detect partial matches which made miniexpect very simple to implement.

License

The library was written by Richard W.M. Jones rjones@redhat.com and is licensed under the Library GPL (LGPL) version 2 or above.

Source is available from: http://git.annexia.org/?p=miniexpect.git;a=summary

Using the library

If you wanted to copy the library into your own code (instead of linking to it as a dependency), you only need to copy the two files: miniexpect.h, miniexpect.c.

The API is documented in the manual page (miniexpect.pod / miniexpect.3).

For examples of how to use the API in reality, see the examples and tests in the source directory.