<div dir="ltr"><div>With option `-e` it uses readline, which is nicer:</div><a href="https://github.com/dashohoxha/simple-password-store/commit/e9e4b4c8c3d5e11d4296379fb7e0d996388142bc">https://github.com/dashohoxha/simple-password-store/commit/e9e4b4c8c3d5e11d4296379fb7e0d996388142bc</a><div><br></div><div>However the history of commands does not work (getting the previous command with the arrow-up).</div><div>Also I don't see how to use autocompletion. Any ideas?<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 29, 2016 at 5:15 AM, Dashamir Hoxha <span dir="ltr"><<a href="mailto:dashohoxha@gmail.com" target="_blank">dashohoxha@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Thu, Jan 28, 2016 at 9:38 PM, Thomas Levine <span dir="ltr"><<a href="mailto:_@thomaslevine.com" target="_blank">_@thomaslevine.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">This should get you started on the subshell.<br>
<br>
  #!/bin/sh<br>
  printf pass\><br>
  read command<br>
  echo "You typed '$command'."<br>
<br>
Then parse $command and pass the arguments to a function.<br>
<br>
If you assume that arguments contain no spaces and you like<br>
living life on the edge, you can just run $command:<br>
<br>
  #!/bin/sh<br>
  while true; do<br>
    printf pass\><br>
    read command<br>
    function_that_does_everything $command<br>
  done<br></blockquote><div><br></div></span><div>Yes, I like living life on the edge, and it works:</div><div><a href="https://github.com/dashohoxha/simple-password-store/commit/81d8b8f35cf50a17307df051e80b179637d6d464" target="_blank">https://github.com/dashohoxha/simple-password-store/commit/81d8b8f35cf50a17307df051e80b179637d6d464</a></div><div>Thanks.<br></div><div><br></div></div></div></div>
</blockquote></div><br></div></div></div>