Two other interesting cases, run from the standard console:

----

> fossil test-prompt-password PROMPT: 0 2>&1 | more
INPUT
PROMPT:[INPUT]

4. Password is visible while typing.

----

> echo PASSWORD | fossil test-prompt-password PROMPT: 0 2>&1 | more
PROMPT:[PASSWORD ]

5. As expected, _isatty() detects that STDERR is not a console, but a
pipe, so the input is also read from the pipe using `getc(stdin)'.

----

No harm here either, just for completeness.

--Florian
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to