On Sun, Jul 6, 2014 at 12:05 PM, j. van den hoff <veedeeh...@googlemail.com> wrote:
> ps: question to ML: it seems that doing the above via a shell "here > document" (just redirecting user input to the `fossil clone' queries > to the script via `<<EOF' and putting password and `Y' on the next lines) > is not recognized by fossil. why not? > Looking at the code (getpass() in user.c)... i'm not sure. It uses getc(stdin) to reach char by char, but doesn't seem to do anything unusual with the stream. Ah... that's the Windows/Android impl. On unix it uses getpass(3) (unistd.h), which might do something weird to prohibit piping in input. NAME getpass - get a password SYNOPSIS #include <unistd.h> char *getpass( const char *prompt); ... DESCRIPTION This function is obsolete. Do not use it. If you want to read input without terminal echoing enabled, see the description of the ECHO flag in termios(3). -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users