On Fri, Dec 06, 2013 at 08:15:19AM -0430, Andres Perera wrote:
| you use cat, muffin face:
| ...
| STTY=`stty -g`
| echo -n "Password: "
| stty -echo
| cat > PASSWORD_FILE_DONT_READ_IF_YOU_ARE_OTHER_PROCESS_PLS
| stty "$STTY"
| ...
| openssl -d ... < PASSWORD_FILE_DONT_READ_IF_YOU_ARE_OTHER_PROCESS_PLS

Right, so you have to send Ctrl-D too...  Quite unexpected behaviour
maybe.

| why did i use printf or heredoc? what happens if a password contains
| the subtring "\r" when you echo it? does "naddy" feel comfortable with
| the brittle dependency of echo being a builtin, and does everybody
| else?

Maybe Naddy wrote his script with his use case in mind.  Could be he
doesn't have "\r" in his password (also, printf doesn't help in that
case, but the heredoc does)

Why do you think the dependency is 'brittle'?  echo has been a
built-in of /bin/sh since it was imported into OpenBSD.

| why are you such a retard?

Mostly to annoy you ;)  Why resort to namecalling anyway?  That's not
very nice... (and an insult to retarded folks around the globe)

Anyway, you win.  Congrats!  No need to respond to my questions (but
no problem if you do; just know that I won't reply any further on this
(sub-)thread).

Paul 'WEiRD' de Weerd

-- 
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
                 http://www.weirdnet.nl/                 

Reply via email to