<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">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><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">https://github.com/dashohoxha/simple-password-store/commit/81d8b8f35cf50a17307df051e80b179637d6d464</a></div><div>Thanks.<br></div><div><br></div></div></div></div>