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

Reply via email to