Is this possible to provide a customized 'complete' function to the readline library that goes inside socat? I mean something quicker than recompiling the readline, some hook or text file configuration?socat readline EXEC:applicationIn the example above, I want to be able to do tab completion of a set of predefined commands.
How to provide a customized function 'complete' to readline of socat
readline;socat
The only hack I can think of, would be to make a directory with fake binaries using the same names as the list you provide, symlinked to some inert executable script like:#!/bin/shecho This is a fake binary, and should never execute. Please check your path.exit 0Then make sure your PATH is pointing to this directory as the last one. Now hitting TAB should make your shell interpreter think you're looking for another file or binary.