With option `-e` it uses readline, which is nicer: https://github.com/dashohoxha/simple-password-store/commit/e9e4b4c8c3d5e11d4296379fb7e0d996388142bc
However the history of commands does not work (getting the previous command with the arrow-up). Also I don't see how to use autocompletion. Any ideas? On Fri, Jan 29, 2016 at 5:15 AM, Dashamir Hoxha <[email protected]> wrote: > On Thu, Jan 28, 2016 at 9:38 PM, Thomas Levine <[email protected]> wrote: > >> This should get you started on the subshell. >> >> #!/bin/sh >> printf pass\> >> read command >> echo "You typed '$command'." >> >> Then parse $command and pass the arguments to a function. >> >> If you assume that arguments contain no spaces and you like >> living life on the edge, you can just run $command: >> >> #!/bin/sh >> while true; do >> printf pass\> >> read command >> function_that_does_everything $command >> done >> > > Yes, I like living life on the edge, and it works: > > https://github.com/dashohoxha/simple-password-store/commit/81d8b8f35cf50a17307df051e80b179637d6d464 > Thanks. > >
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
