https://github.com/rwmjones/miniexpect Skip to content Sign up * Product + Features + Mobile + Actions + Codespaces + Copilot + Packages + Security + Code review + Issues + Discussions + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Skills + GitHub Sponsors + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} rwmjones / miniexpect Public * Notifications * Fork 0 * Star 50 Small expect-like library, clone of http://git.annexia.org/?p= miniexpect.git;a=summary License LGPL-2.1 license 50 stars 0 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights rwmjones/miniexpect This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 1 branch 0 tags Code Latest commit @rwmjones rwmjones Add a bit of explanation of what "expect" is ... f50ad47 Jul 26, 2022 Add a bit of explanation of what "expect" is Kids these days. f50ad47 Git stats * 37 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .gitignore Implement and test multi-matching on strings. May 15, 2014 COPYING.LIB Add miniexpect library. Apr 25, 2014 Makefile.am tests: valgrind: Rebuild tests before running them Jul 26, 2022 README Add a bit of explanation of what "expect" is Jul 26, 2022 configure.ac Port to pcre2 Jul 25, 2022 example-sshpass.c Port to pcre2 Jul 25, 2022 miniexpect.c Port to pcre2 Jul 25, 2022 miniexpect.h Port to pcre2 Jul 25, 2022 miniexpect.pod docs: Small revisions to the manual and readme file Jul 26, 2022 test-ls-version.c Port to pcre2 Jul 25, 2022 test-multi-match.c tests: test-multi-match.c: Fix memory leaks in test Jul 26, 2022 test-spawn.c Add miniexpect library. Apr 25, 2014 tests.h Port to pcre2 Jul 25, 2022 View code README 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 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. About Small expect-like library, clone of http://git.annexia.org/?p= miniexpect.git;a=summary Resources Readme License LGPL-2.1 license Stars 50 stars Watchers 3 watching Forks 0 forks Releases No releases published Packages 0 No packages published Contributors 2 * @rwmjones rwmjones * @ptoscano ptoscano Pino Toscano Languages * C 87.6% * Makefile 6.5% * M4 5.9% Footer (c) 2022 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.